aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-03-15 19:25:33 -0500
committerCharles Kerr <charles.kerr@canonical.com>2016-03-15 19:25:33 -0500
commit2b21545845221a841c11db2c3b4782f6893e72d7 (patch)
tree9b77232971314d2aad2614592a3ca98d71b78611 /src/CMakeLists.txt
parent8ddb1713fa0816ea1c98ae039fea181d629acc7d (diff)
downloadayatana-indicator-display-2b21545845221a841c11db2c3b4782f6893e72d7.tar.gz
ayatana-indicator-display-2b21545845221a841c11db2c3b4782f6893e72d7.tar.bz2
ayatana-indicator-display-2b21545845221a841c11db2c3b4782f6893e72d7.zip
use cmake's find_package(Threads) output everywhere instead of just in src/
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4fe7b1a..63c236d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -22,16 +22,10 @@ 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}
- ${SERVICE_THREAD_LIBS}
+ ${THREAD_LINK_LIBRARIES}
${GCOV_LIBS}
)