comparison CMakeLists.txt @ 106:32dd6ea6a582

Explicitly use c++11 as newer qt versions need that.
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 08 Dec 2016 15:21:11 +0100
parents 098a10fc2e83
children
comparison
equal deleted inserted replaced
105:ddd82d6bfef7 106:32dd6ea6a582
52 add_definitions(-DWINVER=0x0600) 52 add_definitions(-DWINVER=0x0600)
53 add_definitions(-DUNICODE -D_UNICODE) 53 add_definitions(-DUNICODE -D_UNICODE)
54 add_definitions(-DMINGW_HAS_SECURE_API) # for _s functions 54 add_definitions(-DMINGW_HAS_SECURE_API) # for _s functions
55 endif(WIN32) 55 endif(WIN32)
56 56
57 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${HARDENING_FLAGS}") 57 set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS} ${HARDENING_FLAGS}")
58 58
59 # Cmake does not correctly identify gcc windres when cross compiling 59 # Cmake does not correctly identify gcc windres when cross compiling
60 # making this line neccessary to set the correct flags for it. 60 # making this line neccessary to set the correct flags for it.
61 # See: http://public.kitware.com/Bug/view.php?id=11773 61 # See: http://public.kitware.com/Bug/view.php?id=11773
62 SET(CMAKE_RC_COMPILE_OBJECT 62 SET(CMAKE_RC_COMPILE_OBJECT
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)