X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=src%2Fvoglreplay%2FCMakeLists.txt;h=be7ed8948a642df0bfd88db0b3f117f05ca589d1;hb=52a7a2debe9a884acca7d594859c9e113f0f475e;hp=6a19603a67814515fa5c6d0456a02bd9be367a66;hpb=5f0c7ee451e8d431ab9d7676695b3fab85df405c;p=vogl diff --git a/src/voglreplay/CMakeLists.txt b/src/voglreplay/CMakeLists.txt index 6a19603..be7ed89 100644 --- a/src/voglreplay/CMakeLists.txt +++ b/src/voglreplay/CMakeLists.txt @@ -2,6 +2,10 @@ project(voglreplay) cmake_minimum_required(VERSION 2.8) include("${SRC_DIR}/build_options.cmake") +find_package(Threads) +if (NOT CMAKE_USE_PTHREADS_INIT) + message(ERROR "pthread not found") +endif () find_package(X11 REQUIRED) @@ -35,7 +39,7 @@ target_link_libraries(${PROJECT_NAME} voglcommon ${CMAKE_DL_LIBS} ${X11_X11_LIB} - pthread + ${CMAKE_THREAD_LIBS_INIT} voglcore rt )