mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
FindThreads: search test source relative to module
This is a simpler way to reference the location of FindThreads.cmake.
This commit is contained in:
committed by
Rolf Eike Beer
parent
99d34f46fa
commit
cbd5db6485
@@ -101,7 +101,7 @@ else()
|
||||
message(STATUS "Check if compiler accepts -pthread")
|
||||
try_run(THREADS_PTHREAD_ARG THREADS_HAVE_PTHREAD_ARG
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_ROOT}/Modules/CheckForPthreads.c
|
||||
${CMAKE_CURRENT_LIST_DIR}/CheckForPthreads.c
|
||||
CMAKE_FLAGS -DLINK_LIBRARIES:STRING=-pthread
|
||||
COMPILE_OUTPUT_VARIABLE OUTPUT)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user