diff options
author | Brad King <brad.king@kitware.com> | 2022-04-14 13:16:05 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-04-26 13:54:53 -0400 |
commit | 1ee8c545ddb270c282f896157616e91c41c80880 (patch) | |
tree | 0f1e995ae7e2468ae130050b26e270e28f1f4fd8 /Modules/FindThreads.cmake | |
parent | 5b5cd92363877e790d09f38d6364f42345e7f327 (diff) | |
download | cmake-1ee8c545ddb270c282f896157616e91c41c80880.tar.gz |
FindThreads: Clarify internal helper macro names
Diffstat (limited to 'Modules/FindThreads.cmake')
-rw-r--r-- | Modules/FindThreads.cmake | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/FindThreads.cmake b/Modules/FindThreads.cmake index 30f8580055..13c8c5c63b 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) |