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.
2 parents 08e4bb3 + d089446 commit 16e8662Copy full SHA for 16e8662
contrib/CMakeLists.txt
@@ -13,6 +13,9 @@ include(GNUInstallDirs)
13
# Set C++11 as default standard
14
set(CMAKE_CXX_STANDARD 11)
15
16
+set(THREADS_PREFER_PTHREAD_FLAG ON)
17
+find_package(Threads REQUIRED)
18
+
19
get_filename_component(gemmlowp_src ${gemmlowp_SOURCE_DIR} PATH)
20
21
if(WIN32)
@@ -24,7 +27,7 @@ if(WIN32)
24
27
add_definitions(-DGEMMLOWP_ALLOW_INLINE_ASM)
25
28
endif()
26
29
else()
- set(EXTERNAL_LIBRARIES "pthread")
30
+ set(EXTERNAL_LIBRARIES Threads::Threads)
31
32
33
# Glob header files
0 commit comments