MattiaMontanari / openGJK

Fast and reliable implementation of the Gilbert-Johnson-Keerthi (GJK) algorithm for C, C#, Go, Matlab and Python
https://www.mattiamontanari.com/opengjk/
GNU General Public License v3.0
135 stars 37 forks source link

Attempted to write a file into source #19

Closed VollmerMarcel closed 1 year ago

VollmerMarcel commented 3 years ago

When executing cmake . on ubuntu 18.04.5 I get the error:

`CMake Error at /usr/share/cmake-3.21/Modules/FindOpenMP.cmake:184 (file): file attempted to write a file: .../openGJK/CMakeFiles/FindOpenMP/OpenMPTryFlag.c into a source directory.

Call Stack (most recent call first): /usr/share/cmake-3.21/Modules/FindOpenMP.cmake:200 (_OPENMP_WRITE_SOURCE_FILE) /usr/share/cmake-3.21/Modules/FindOpenMP.cmake:461 (_OPENMP_GET_FLAGS) CMakeLists.txt:71 (find_package) `

I traced this back to an issue with the setting set(CMAKE_DISABLE_SOURCE_CHANGES ON) in .../openGJK/cmake/CMakeDefaults.cmake setting it to OFF instead worked.

MattiaMontanari commented 1 year ago

I removed openmp altogether