From 72c2841eed0a1c6b816eacca73998aedfd01a467 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Sun, 29 Jun 2014 21:09:02 +0100 Subject: [PATCH] Define Qt5 C++11 macros for Qt4 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b07917de3..0609d4774 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -214,6 +214,11 @@ if( NOT Qt5Core_DIR ) include( ${QT_USE_FILE} ) endmacro() + + # Qt5 C++11 Macros not defined within Qt4 + # TODO: Add C++11 support + add_definitions( "-DQ_DECL_FINAL" ) + add_definitions( "-DQ_DECL_OVERRIDE" ) endif() if( Qt5Core_DIR )