diff options
author | Kevin Funk <kevin.funk@kdab.com> | 2016-01-08 15:58:42 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2016-01-11 09:53:37 +0000 |
commit | 558f69a18b0ac2a54fdbc44377ef963c8db89ad6 (patch) | |
tree | 64c2603ddc204768cf341f5bb2dd89546556a4e4 /tests/auto/cmake/test_use_modules_function | |
parent | 1c32b71cd0ea6a05a4d328a7d30f19b49d0d67f1 (diff) |
CMake: Ensure that -fPIC is passed in tests.
CMake newer than 2.8.12 automatically adds the
appropriate flag, but CI still runs 2.8.11.
Change-Id: Ie61375f2feb54a92c9d8f0ed6ad5227a67343bc5
Reviewed-by: Stephen Kelly <ske@ableton.com>
Diffstat (limited to 'tests/auto/cmake/test_use_modules_function')
-rw-r--r-- | tests/auto/cmake/test_use_modules_function/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/cmake/test_use_modules_function/CMakeLists.txt b/tests/auto/cmake/test_use_modules_function/CMakeLists.txt index bfcdd9d1d7..be05c75054 100644 --- a/tests/auto/cmake/test_use_modules_function/CMakeLists.txt +++ b/tests/auto/cmake/test_use_modules_function/CMakeLists.txt @@ -12,5 +12,7 @@ add_executable(three three.cpp) find_package(Qt5Core) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}") + qt5_use_modules(two Test) qt5_use_modules(three Gui Test) |