changeset 22:e8320104979d

Depend on Printsupport use c++11
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 11 Apr 2016 10:59:08 +0200
parents 0b66b10a287d
children 927794e3cc52
files CMakeLists.txt
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Wed Mar 30 17:08:46 2016 +0200
+++ b/CMakeLists.txt	Mon Apr 11 10:59:08 2016 +0200
@@ -34,6 +34,7 @@
 add_definitions(-DAPPNAME="${PROJECT_NAME}")
 
 find_package(Qt5Widgets)
+find_package(Qt5PrintSupport)
 
 set(CMAKE_AUTOMOC ON)
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
@@ -54,7 +55,7 @@
    add_definitions(-DMINGW_HAS_SECURE_API) # for _s functions
 endif(WIN32)
 
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${HARDENING_FLAGS}")
+set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS} ${HARDENING_FLAGS}")
 
 # Cmake does not correctly identify gcc windres when cross compiling
 # making this line neccessary to set the correct flags for it.
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)