# HG changeset patch # User Andre Heinecke # Date 1460365148 -7200 # Node ID e8320104979df0581059578d99a44d7af96ec17b # Parent 0b66b10a287dad8193d7cd410186edce622a1744 Depend on Printsupport use c++11 diff -r 0b66b10a287d -r e8320104979d CMakeLists.txt --- 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.