File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2
2
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
3
3
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
4
5
+ include (FindThreads )
6
+
5
7
if (CMAKE_BUILD_TYPE STREQUAL "Debug" )
6
8
message (WARNING "The ubench SHOULD NOT be run in the Debug build type!" )
7
9
endif ()
@@ -29,7 +31,7 @@ target_include_directories(ubench PRIVATE ${UMF_CMAKE_SOURCE_DIR}/include/)
29
31
target_link_libraries (ubench
30
32
umf
31
33
${LIBS_OPTIONAL}
32
- pthread
34
+ ${CMAKE_THREAD_LIBS_INIT}
33
35
m )
34
36
35
37
if (UMF_BUILD_OS_MEMORY_PROVIDER )
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ endif()
22
22
23
23
add_umf_library (NAME umf_utils
24
24
TYPE STATIC
25
- SRCS ${UMF_UTILS_SOURCES} )
25
+ SRCS ${UMF_UTILS_SOURCES}
26
+ LIBS ${CMAKE_THREAD_LIBS_INIT} )
26
27
27
28
add_library (${PROJECT_NAME} ::utils ALIAS umf_utils )
28
29
You can’t perform that action at this time.
0 commit comments