summaryrefslogtreecommitdiffstats
path: root/Modules/FindThreads.cmake
diff options
context:
space:
mode:
authorTimo Rothenpieler <btbn@btbn.de>2014-10-02 19:47:36 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2014-10-02 20:13:44 (GMT)
commitcbd5db64851109c8cd8e633ed6b7b2ab88918f3e (patch)
tree2d8da04631be63a65c3d4b0d5cfabaeeae3faab6 /Modules/FindThreads.cmake
parent99d34f46fa394a9daabb7ca959e1540ae3a41ef2 (diff)
downloadCMake-cbd5db64851109c8cd8e633ed6b7b2ab88918f3e.zip
CMake-cbd5db64851109c8cd8e633ed6b7b2ab88918f3e.tar.gz
CMake-cbd5db64851109c8cd8e633ed6b7b2ab88918f3e.tar.bz2
FindThreads: search test source relative to module
This is a simpler way to reference the location of FindThreads.cmake.
Diffstat (limited to 'Modules/FindThreads.cmake')
-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)