You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the project's root CMakeLists.txt makes assumptions about where clang and GCC are installed which doesn't match all configurations / distributions. In particular, I'm referring to the conditionals which guard appending "-pthread" (and other flags) to the CMAKE_CXX_FLAGS_COMMON variable. The fix is likely as simple as changing the conditional guard by replacing instances of ${CMAKE_CXX_COMPILER} STREQUAL "/usr/bin/clang++" with ${CMAKE_CXX_COMPILER_ID} MATCHES "(C|c?)lang" (and similar for GCC).
The valid values of CMAKE_CXX_COMPILER_ID can be found here
The text was updated successfully, but these errors were encountered:
It looks like the project's root CMakeLists.txt makes assumptions about where clang and GCC are installed which doesn't match all configurations / distributions. In particular, I'm referring to the conditionals which guard appending
"-pthread"
(and other flags) to the CMAKE_CXX_FLAGS_COMMON variable. The fix is likely as simple as changing the conditional guard by replacing instances of${CMAKE_CXX_COMPILER} STREQUAL "/usr/bin/clang++"
with${CMAKE_CXX_COMPILER_ID} MATCHES "(C|c?)lang"
(and similar for GCC).The valid values of
CMAKE_CXX_COMPILER_ID
can be found hereThe text was updated successfully, but these errors were encountered: