Merge topic 'FindThreads-dir'

cbd5db64 FindThreads: search test source relative to module
This commit is contained in:
Brad King 2014-10-03 15:10:16 -04:00 committed by CMake Topic Stage
commit 87eb1ed20b
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ else()
message(STATUS "Check if compiler accepts -pthread") message(STATUS "Check if compiler accepts -pthread")
try_run(THREADS_PTHREAD_ARG THREADS_HAVE_PTHREAD_ARG try_run(THREADS_PTHREAD_ARG THREADS_HAVE_PTHREAD_ARG
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}
${CMAKE_ROOT}/Modules/CheckForPthreads.c ${CMAKE_CURRENT_LIST_DIR}/CheckForPthreads.c
CMAKE_FLAGS -DLINK_LIBRARIES:STRING=-pthread CMAKE_FLAGS -DLINK_LIBRARIES:STRING=-pthread
COMPILE_OUTPUT_VARIABLE OUTPUT) COMPILE_OUTPUT_VARIABLE OUTPUT)