File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 22# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
33# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44
5+ include (FindThreads)
6+
57if (CMAKE_BUILD_TYPE STREQUAL "Debug" )
68 message (WARNING "The ubench SHOULD NOT be run in the Debug build type!" )
79endif ()
@@ -29,7 +31,7 @@ target_include_directories(ubench PRIVATE ${UMF_CMAKE_SOURCE_DIR}/include/)
2931target_link_libraries (ubench
3032 umf
3133 ${LIBS_OPTIONAL}
32- pthread
34+ ${CMAKE_THREAD_LIBS_INIT}
3335 m)
3436
3537if (UMF_BUILD_OS_MEMORY_PROVIDER)
Original file line number Diff line number Diff line change 33# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44
55include (${UMF_CMAKE_SOURCE_DIR} /cmake/helpers.cmake)
6+ include (FindThreads)
67
78set (UMF_UTILS_SOURCES_POSIX
89 utils_posix_concurrency.c
@@ -22,7 +23,8 @@ endif()
2223
2324add_umf_library(NAME umf_utils
2425 TYPE STATIC
25- SRCS ${UMF_UTILS_SOURCES} )
26+ SRCS ${UMF_UTILS_SOURCES}
27+ LIBS ${CMAKE_THREAD_LIBS_INIT} )
2628
2729add_library (${PROJECT_NAME} ::utils ALIAS umf_utils)
2830
You can’t perform that action at this time.
0 commit comments