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 581cb0d commit e2d339cCopy full SHA for e2d339c
CMakeLists.txt
@@ -32,7 +32,10 @@ include_directories(Hello)
32
# indicate the entry point for the executable
33
add_executable(CMakeHelloWorld Hello HelloWorld.cpp)
34
35
+# BLAS libraries compile dynamically against threads
36
+LIST(APPEND CMAKE_THREAD_LIBS_INIT ${LM})
37
+
38
# Indicate which libraries to include during the link process.
-target_link_libraries(CMakeHelloWorld Hello ${BLAS_LIBRARIES})
39
+target_link_libraries(CMakeHelloWorld Hello ${BLAS_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
40
41
# install (TARGETS CMakeHelloWorld DESTINATION bin)
0 commit comments