aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-10 21:58:16 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-10 21:58:16 +0200
commit0cff15b59fc55128f0ef70370c5285cce3a02a1d (patch)
tree7d1f57095b50ef59a045b8b78096b397ed1cfe68
parentb4927b1299862b01a751e929152f3b2b24444f06 (diff)
parent95d2a880c3b16d824162e1ae6dc67f329aad4903 (diff)
downloadayatana-ido-0cff15b59fc55128f0ef70370c5285cce3a02a1d.tar.gz
ayatana-ido-0cff15b59fc55128f0ef70370c5285cce3a02a1d.tar.bz2
ayatana-ido-0cff15b59fc55128f0ef70370c5285cce3a02a1d.zip
Merge branch 'tari01-pr/no-pie-only-in-tests'
Attributes GH PR #46: https://github.com/AyatanaIndicators/ayatana-ido/pull/46
-rw-r--r--tests/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index a31f789..eb6cff1 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,7 +1,5 @@
find_package(GMock)
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -no-pie")
-
# gtest-menuitems
include_directories(
@@ -12,6 +10,7 @@ include_directories(
set_source_files_properties(gtest-menuitems.cpp PROPERTIES COMPILE_FLAGS ${COMPILE_FLAGS})
add_executable("gtest-menuitems" gtest-menuitems.cpp)
+target_link_options("gtest-menuitems" PRIVATE -no-pie)
target_link_libraries("gtest-menuitems"
ayatana-ido3-0.4