mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 12:19:54 -05:00
FindThreads: Drop unused internal CMAKE_HAVE_THREADS_LIBRARY variable
This internal variable has not been used since commit 46368eddfd
(FindThreads: move checking of the -pthread compiler flag into a macro,
2014-10-06, v3.1.0-rc1~21^2~2). It has never been documented for public
use.
This commit is contained in:
@@ -96,7 +96,6 @@ macro(_check_threads_lib LIBNAME FUNCNAME VARNAME)
|
|||||||
CHECK_LIBRARY_EXISTS(${LIBNAME} ${FUNCNAME} "" ${VARNAME})
|
CHECK_LIBRARY_EXISTS(${LIBNAME} ${FUNCNAME} "" ${VARNAME})
|
||||||
if(${VARNAME})
|
if(${VARNAME})
|
||||||
set(CMAKE_THREAD_LIBS_INIT "-l${LIBNAME}")
|
set(CMAKE_THREAD_LIBS_INIT "-l${LIBNAME}")
|
||||||
set(CMAKE_HAVE_THREADS_LIBRARY 1)
|
|
||||||
set(Threads_FOUND TRUE)
|
set(Threads_FOUND TRUE)
|
||||||
endif()
|
endif()
|
||||||
endif ()
|
endif ()
|
||||||
@@ -153,7 +152,6 @@ if(CMAKE_HAVE_PTHREAD_H)
|
|||||||
# We have pthread.h
|
# We have pthread.h
|
||||||
# Let's check for the library now.
|
# Let's check for the library now.
|
||||||
#
|
#
|
||||||
set(CMAKE_HAVE_THREADS_LIBRARY)
|
|
||||||
if(NOT THREADS_HAVE_PTHREAD_ARG)
|
if(NOT THREADS_HAVE_PTHREAD_ARG)
|
||||||
# Check if pthread functions are in normal C library.
|
# Check if pthread functions are in normal C library.
|
||||||
# We list some pthread functions in PTHREAD_C_CXX_TEST_SOURCE test code.
|
# We list some pthread functions in PTHREAD_C_CXX_TEST_SOURCE test code.
|
||||||
@@ -166,7 +164,6 @@ if(CMAKE_HAVE_PTHREAD_H)
|
|||||||
endif()
|
endif()
|
||||||
if(CMAKE_HAVE_LIBC_PTHREAD)
|
if(CMAKE_HAVE_LIBC_PTHREAD)
|
||||||
set(CMAKE_THREAD_LIBS_INIT "")
|
set(CMAKE_THREAD_LIBS_INIT "")
|
||||||
set(CMAKE_HAVE_THREADS_LIBRARY 1)
|
|
||||||
set(Threads_FOUND TRUE)
|
set(Threads_FOUND TRUE)
|
||||||
else()
|
else()
|
||||||
# Check for -pthread first if enabled. This is the recommended
|
# Check for -pthread first if enabled. This is the recommended
|
||||||
|
|||||||
Reference in New Issue
Block a user