aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-08-10 00:21:38 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-10 21:57:47 +0200
commit95d2a880c3b16d824162e1ae6dc67f329aad4903 (patch)
tree7d1f57095b50ef59a045b8b78096b397ed1cfe68
parentb4927b1299862b01a751e929152f3b2b24444f06 (diff)
downloadayatana-ido-95d2a880c3b16d824162e1ae6dc67f329aad4903.tar.gz
ayatana-ido-95d2a880c3b16d824162e1ae6dc67f329aad4903.tar.bz2
ayatana-ido-95d2a880c3b16d824162e1ae6dc67f329aad4903.zip
Use -no-pie build flags for test only
-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