summaryrefslogtreecommitdiffstats
path: root/Modules/FindThreads.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2019-11-04 19:11:32 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-11-04 19:11:45 (GMT)
commit96679969230112d52b6061d6d7523c7c24893255 (patch)
tree8e8f7d3601e43d81be950eeafd7e769756dfa1b8 /Modules/FindThreads.cmake
parentdbd14ecacf9b85dcdf5f566538167261dba224fe (diff)
parent7b2dd9dedc8195d2b3bc493dd5ab48cdd2fc3a7b (diff)
downloadCMake-96679969230112d52b6061d6d7523c7c24893255.zip
CMake-96679969230112d52b6061d6d7523c7c24893255.tar.gz
CMake-96679969230112d52b6061d6d7523c7c24893255.tar.bz2
Merge topic 'message-check-types'
7b2dd9dedc Refactor: Use added message types in various modules 949a1e120a message: New message types to mark checks performed by CMake Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3689
Diffstat (limited to 'Modules/FindThreads.cmake')
-rw-r--r--Modules/FindThreads.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindThreads.cmake b/Modules/FindThreads.cmake
index d39fe33..1780511 100644
--- a/Modules/FindThreads.cmake
+++ b/Modules/FindThreads.cmake
@@ -90,7 +90,7 @@ macro(_check_pthreads_flag)
if(NOT Threads_FOUND)
# If we did not find a thread library look for -pthread compiler option.
if(NOT DEFINED THREADS_HAVE_PTHREAD_ARG)
- message(STATUS "Check if compiler accepts -pthread")
+ message(CHECK_START "Check if compiler accepts -pthread")
if(CMAKE_C_COMPILER_LOADED)
set(_threads_src ${CMAKE_CURRENT_LIST_DIR}/CheckForPthreads.c)
elseif(CMAKE_CXX_COMPILER_LOADED)
@@ -106,9 +106,9 @@ macro(_check_pthreads_flag)
if(THREADS_HAVE_PTHREAD_ARG)
set(Threads_FOUND TRUE)
- message(STATUS "Check if compiler accepts -pthread - yes")
+ message(CHECK_PASS "yes")
else()
- message(STATUS "Check if compiler accepts -pthread - no")
+ message(CHECK_FAIL "no")
file(APPEND
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
"Determining if compiler accepts -pthread failed with the following output:\n${OUTPUT}\n\n")