diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 02d973e..4fe7b1a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -22,10 +22,16 @@ add_executable( main.cpp ) +if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 3.2) + set(SERVICE_THREAD_LIBS -pthread) +else() + set(SERVICE_THREAD_LIBS Threads::Threads) +endif() + target_link_libraries(${SERVICE_EXEC} ${SERVICE_LIB} ${SERVICE_DEPS_LIBRARIES} - Threads::Threads + ${SERVICE_THREAD_LIBS} ${GCOV_LIBS} ) |