We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b261fd9 commit 5c7c60bCopy full SHA for 5c7c60b
source/loader/CMakeLists.txt
@@ -51,8 +51,9 @@ if (UNIX)
51
# Older gcc versions need -pthread, not just -lpthread
52
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
53
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11.1)
54
- find_library(PTHREAD_LIBRARY REQUIRED pthread)
55
- target_link_libraries(ur_loader PRIVATE "-pthread")
+ if(CMAKE_USE_PTHREADS_INIT)
+ target_link_libraries(ur_loader PRIVATE "-pthread")
56
+ endif()
57
endif()
58
59
0 commit comments