aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-08-30 03:17:36 +0200
committerRobert Tari <robert@tari.in>2021-08-30 03:17:36 +0200
commitc427d71eda0e7f7427306b2eb88e80469f5f4378 (patch)
treed83e593664871fe135e135208f74e2d02d1c0cf1 /tests
parenta28e2ea4d3b86325f769a6828e836caec0edba6f (diff)
downloadayatana-indicator-datetime-c427d71eda0e7f7427306b2eb88e80469f5f4378.tar.gz
ayatana-indicator-datetime-c427d71eda0e7f7427306b2eb88e80469f5f4378.tar.bz2
ayatana-indicator-datetime-c427d71eda0e7f7427306b2eb88e80469f5f4378.zip
tests/CMakeLists.txt: Build DBusMock tests with -no-pie
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index e3c7a62..a2748ba 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -118,6 +118,7 @@ function(add_dbusmock_test_by_name name)
set (TEST_NAME ${name})
set (COVERAGE_TEST_TARGETS ${COVERAGE_TEST_TARGETS} ${TEST_NAME} PARENT_SCOPE)
add_executable (${TEST_NAME} ${TEST_NAME}.cpp gschemas.compiled)
+ target_link_options(${TEST_NAME} PRIVATE -no-pie)
add_test (${TEST_NAME} ${TEST_NAME})
target_link_libraries (${TEST_NAME} indicatordatetimeservice ${SERVICE_DEPS_LIBRARIES} ${DBUSTEST_LIBRARIES} ${GTEST_LIBRARIES} ${GMOCK_LIBRARIES})
endfunction()