X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Fvoglcore%2FCMakeLists.txt;h=476cb3a241e2e3aa19d2ff5c6d44016685640742;hb=52a7a2debe9a884acca7d594859c9e113f0f475e;hp=9b6dda144666f4cbc24ed99681a2b4c14bf949d4;hpb=5dfa02621fbdbae34adfd4e25faad0268f6a198a;p=vogl diff --git a/src/voglcore/CMakeLists.txt b/src/voglcore/CMakeLists.txt index 9b6dda1..476cb3a 100644 --- a/src/voglcore/CMakeLists.txt +++ b/src/voglcore/CMakeLists.txt @@ -2,6 +2,10 @@ project(voglcore) cmake_minimum_required(VERSION 2.8) option(VOGL_ENABLE_ASSERTS "Enable assertions in all builds (including release)" FALSE) +find_package(Threads) +if (NOT CMAKE_USE_PTHREADS_INIT) + message(ERROR "pthread not found") +endif () include("${SRC_DIR}/build_options.cmake") @@ -106,7 +110,7 @@ endif() add_library(${PROJECT_NAME} ${SRC_LIST}) target_link_libraries(${PROJECT_NAME} - pthread + ${CMAKE_THREAD_LIBS_INIT} rt )