diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-03-12 10:23:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-03-12 22:41:15 (GMT) |
commit | 5144f6fb1121492d963c9a266650d219ee7eccc3 (patch) | |
tree | 6c90200ffa9af1d15d95e760866a24741bb3139b /Source/QtDialog | |
parent | 5990a5637e31c3bf8f4c89b5c0423d85326ee59d (diff) | |
download | CMake-5144f6fb1121492d963c9a266650d219ee7eccc3.zip CMake-5144f6fb1121492d963c9a266650d219ee7eccc3.tar.gz CMake-5144f6fb1121492d963c9a266650d219ee7eccc3.tar.bz2 |
cmake-gui: Use -fPIE if required by Qt.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt index 29daffd..1684fb2 100644 --- a/Source/QtDialog/CMakeLists.txt +++ b/Source/QtDialog/CMakeLists.txt @@ -27,6 +27,8 @@ if (Qt5Widgets_FOUND) set(QT_LIBRARIES ${Qt5Widgets_LIBRARIES}) # Remove this when the minimum version of Qt is 4.6. add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0) + + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") else() set(QT_MIN_VERSION "4.4.0") find_package(Qt4 REQUIRED) |