diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2016-03-15 19:25:33 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2016-03-15 19:25:33 -0500 |
commit | 2b21545845221a841c11db2c3b4782f6893e72d7 (patch) | |
tree | 9b77232971314d2aad2614592a3ca98d71b78611 /src | |
parent | 8ddb1713fa0816ea1c98ae039fea181d629acc7d (diff) | |
download | ayatana-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')
-rw-r--r-- | src/CMakeLists.txt | 8 |
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} ) |