diff --git a/CMakeLists.txt b/CMakeLists.txt index 45106db..6f2cff9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,9 @@ else() include(cmake/LibsystemdExternalProject.cmake) endif() +# Required for std::thread +find_package(Threads REQUIRED) + #------------------------------- # SOURCE FILES CONFIGURATION #------------------------------- @@ -110,6 +113,7 @@ if(BUILD_LIBSYSTEMD) add_dependencies(sdbus-c++-objlib LibsystemdBuildProject) endif() target_link_libraries(sdbus-c++-objlib PUBLIC Systemd::Libsystemd) +target_link_libraries(sdbus-c++-objlib PUBLIC Threads::Threads) add_library(sdbus-c++) target_include_directories(sdbus-c++ PUBLIC $