summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-10-03 19:10:16 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-10-03 19:10:16 (GMT)
commit87eb1ed20b73b6021c6b9c40e43d3e19ea7b4669 (patch)
treee8368fbfab668cbd355aa656b4bada252d07fcb9 /Modules
parent8ec00743a65b03cdb4092707b7236359a5733209 (diff)
parentcbd5db64851109c8cd8e633ed6b7b2ab88918f3e (diff)
downloadCMake-87eb1ed20b73b6021c6b9c40e43d3e19ea7b4669.zip
CMake-87eb1ed20b73b6021c6b9c40e43d3e19ea7b4669.tar.gz
CMake-87eb1ed20b73b6021c6b9c40e43d3e19ea7b4669.tar.bz2
Merge topic 'FindThreads-dir'
cbd5db64 FindThreads: search test source relative to module
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindThreads.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindThreads.cmake b/Modules/FindThreads.cmake
index 6050dcd..86ccb96 100644
--- a/Modules/FindThreads.cmake
+++ b/Modules/FindThreads.cmake
@@ -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)