aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-03-15 14:17:21 -0500
committerCharles Kerr <charles.kerr@canonical.com>2016-03-15 14:17:21 -0500
commitb3f65b988fe0a646acaee6d3e71a9b1682e0b014 (patch)
tree9368ec434c3843a8adc70f3b76a7b98b89aefc2d /src
parent6174e922ef0e819d0b8f8f16ad863c83f8fa6421 (diff)
downloadayatana-indicator-display-b3f65b988fe0a646acaee6d3e71a9b1682e0b014.tar.gz
ayatana-indicator-display-b3f65b988fe0a646acaee6d3e71a9b1682e0b014.tar.bz2
ayatana-indicator-display-b3f65b988fe0a646acaee6d3e71a9b1682e0b014.zip
cmake's Thread::Thread import doesn't exist in vivid's version of cmake (3.0.2), so fall back gracefully to -pthread there
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt8
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}
)