summaryrefslogtreecommitdiffstats
path: root/Modules/FindThreads.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-04-14 17:16:05 (GMT)
committerBrad King <brad.king@kitware.com>2022-04-26 17:54:53 (GMT)
commit1ee8c545ddb270c282f896157616e91c41c80880 (patch)
tree0f1e995ae7e2468ae130050b26e270e28f1f4fd8 /Modules/FindThreads.cmake
parent5b5cd92363877e790d09f38d6364f42345e7f327 (diff)
downloadCMake-1ee8c545ddb270c282f896157616e91c41c80880.zip
CMake-1ee8c545ddb270c282f896157616e91c41c80880.tar.gz
CMake-1ee8c545ddb270c282f896157616e91c41c80880.tar.bz2
FindThreads: Clarify internal helper macro names
Diffstat (limited to 'Modules/FindThreads.cmake')
-rw-r--r--Modules/FindThreads.cmake14
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/FindThreads.cmake b/Modules/FindThreads.cmake
index 30f8580..13c8c5c 100644
--- a/Modules/FindThreads.cmake
+++ b/Modules/FindThreads.cmake
@@ -91,7 +91,7 @@ int main(void)
# Internal helper macro.
# Do NOT even think about using it outside of this file!
-macro(_check_threads_lib LIBNAME FUNCNAME VARNAME)
+macro(_threads_check_lib LIBNAME FUNCNAME VARNAME)
if(NOT Threads_FOUND)
CHECK_LIBRARY_EXISTS(${LIBNAME} ${FUNCNAME} "" ${VARNAME})
if(${VARNAME})
@@ -103,7 +103,7 @@ endmacro()
# Internal helper macro.
# Do NOT even think about using it outside of this file!
-macro(_check_pthreads_flag)
+macro(_threads_check_flag_pthread)
if(NOT Threads_FOUND)
# If we did not find -lpthreads, -lpthread, or -lthread, look for -pthread
if(NOT DEFINED THREADS_HAVE_PTHREAD_ARG)
@@ -170,18 +170,18 @@ if(CMAKE_HAVE_PTHREAD_H)
# way, but not backwards compatible as one must also pass -pthread
# as compiler flag then.
if (THREADS_PREFER_PTHREAD_FLAG)
- _check_pthreads_flag()
+ _threads_check_flag_pthread()
endif ()
if(CMAKE_SYSTEM MATCHES "GHS-MULTI")
- _check_threads_lib(posix pthread_create CMAKE_HAVE_PTHREADS_CREATE)
+ _threads_check_lib(posix pthread_create CMAKE_HAVE_PTHREADS_CREATE)
endif()
- _check_threads_lib(pthreads pthread_create CMAKE_HAVE_PTHREADS_CREATE)
- _check_threads_lib(pthread pthread_create CMAKE_HAVE_PTHREAD_CREATE)
+ _threads_check_lib(pthreads pthread_create CMAKE_HAVE_PTHREADS_CREATE)
+ _threads_check_lib(pthread pthread_create CMAKE_HAVE_PTHREAD_CREATE)
endif()
endif()
- _check_pthreads_flag()
+ _threads_check_flag_pthread()
endif()
if(CMAKE_THREAD_LIBS_INIT OR CMAKE_HAVE_LIBC_PTHREAD)