cmatrix
cmatrix copied to clipboard
Build failed. Should we add -D_XOPEN_SOURCE_EXTENDED in CMakeLists.txt?
Build failed on macOS 13.1.
After adding -D_XOPEN_SOURCE_EXTENDED, the build is succeeded. FYI: https://stackoverflow.com/questions/5378778/what-does-d-xopen-source-do-mean
Yes please :)
Where does one put this in CMakeLists.txt?
Yes
I guess I should clarify what I meant. I don't use cmake personally. I was wondering where I should put the -D_XOPEN_SOURCE_EXTENDED
flag in the CMakeLists.txt file
We need to something like:
set(CMAKE_C_FLAGS "-D_XOPEN_SOURCE=700")
please see https://cmake.org/cmake/help/latest/guide/tutorial/index.html for more information about cmake :)