aboutsummaryrefslogtreecommitdiff
path: root/cmake/AddThreads.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/AddThreads.cmake')
-rw-r--r--cmake/AddThreads.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/AddThreads.cmake b/cmake/AddThreads.cmake
index 72a4e08..88c7aae 100644
--- a/cmake/AddThreads.cmake
+++ b/cmake/AddThreads.cmake
@@ -9,15 +9,15 @@ find_package (Threads)
function (add_threads target)
if (NOT Threads_FOUND OR NOT CMAKE_USE_PTHREADS_INIT)
message (FATAL_ERROR "pthreads not found")
- endif (NOT Threads_FOUND OR NOT CMAKE_USE_PTHREADS_INIT)
+ endif ()
if (THREADS_HAVE_PTHREAD_ARG)
set_property (TARGET ${target} PROPERTY
COMPILE_OPTIONS "-pthread")
set_property (TARGET ${target} PROPERTY
INTERFACE_COMPILE_OPTIONS "-pthread")
- endif (THREADS_HAVE_PTHREAD_ARG)
+ endif ()
if (CMAKE_THREAD_LIBS_INIT)
target_link_libraries (${target} "${CMAKE_THREAD_LIBS_INIT}")
- endif (CMAKE_THREAD_LIBS_INIT)
-endfunction (add_threads)
+ endif ()
+endfunction ()