summaryrefslogtreecommitdiffstats
path: root/Modules/FindThreads.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/FindThreads.cmake')
-rw-r--r--Modules/FindThreads.cmake16
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/FindThreads.cmake b/Modules/FindThreads.cmake
index 22bffef..5d76777 100644
--- a/Modules/FindThreads.cmake
+++ b/Modules/FindThreads.cmake
@@ -78,9 +78,9 @@ else()
set(CMAKE_HAVE_THREADS_LIBRARY 1)
set(Threads_FOUND TRUE)
endif()
- endif(CMAKE_SYSTEM MATCHES "SunOS.*")
- endif(NOT CMAKE_HAVE_THREADS_LIBRARY)
- endif(NOT THREADS_HAVE_PTHREAD_ARG)
+ endif()
+ endif()
+ endif()
if(NOT CMAKE_HAVE_THREADS_LIBRARY)
# If we did not found -lpthread, -lpthread, or -lthread, look for -pthread
@@ -109,15 +109,15 @@ else()
"Determining if compiler accepts -pthread failed with the following output:\n${OUTPUT}\n\n")
endif()
- endif("THREADS_HAVE_PTHREAD_ARG" MATCHES "^THREADS_HAVE_PTHREAD_ARG")
+ endif()
if(THREADS_HAVE_PTHREAD_ARG)
set(Threads_FOUND TRUE)
set(CMAKE_THREAD_LIBS_INIT "-pthread")
endif()
- endif(NOT CMAKE_HAVE_THREADS_LIBRARY)
- endif(CMAKE_HAVE_PTHREAD_H)
+ endif()
+ endif()
endif()
if(CMAKE_THREAD_LIBS_INIT OR CMAKE_HAVE_LIBC_CREATE)
@@ -145,7 +145,7 @@ if(CMAKE_USE_PTHREADS_INIT)
set(CMAKE_THREAD_LIBS_INIT "-lcma")
set(CMAKE_HP_PTHREADS_INIT 1)
set(Threads_FOUND TRUE)
- endif(CMAKE_HAVE_HP_CMA)
+ endif()
set(CMAKE_USE_PTHREADS_INIT 1)
endif()
@@ -160,7 +160,7 @@ if(CMAKE_USE_PTHREADS_INIT)
set(CMAKE_THREAD_LIBS_INIT )
set(CMAKE_USE_WIN32_THREADS_INIT 0)
endif()
-endif(CMAKE_USE_PTHREADS_INIT)
+endif()
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Threads DEFAULT_MSG Threads_FOUND)