From fc02afccba1fdd4a27f6dd419049a8287251f156 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 3 May 2021 17:10:10 +0200 Subject: tests/CMakeLists.txt: Build unit tests with --no-pie CXXFLAG. --- tests/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 93b62e9..1e35481 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,6 +1,8 @@ find_package(GMock) include_directories(${GMOCK_INCLUDE_DIRS}) +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -no-pie") + # dbustest pkg_check_modules(DBUSTEST REQUIRED dbustest-1>=14.04.0) -- cgit v1.2.3