[plasma-framework] /: Revert "Revert "Enabling C++11 flags for clang and gcc""
Kevin Ottens
ervin at kde.org
Tue Jul 23 09:05:53 UTC 2013
Git commit 39cd64fc68b1dc2fc06f308e73ec5be1c78d28f6 by Kevin Ottens.
Committed on 22/07/2013 at 11:21.
Pushed by ervin into branch 'master'.
Revert "Revert "Enabling C++11 flags for clang and gcc""
This reverts commit 597397b41f5450f24ddc784e0faa13133fed6bd5.
Reverting my own revert now that we have proper consensus on what one
can use of C++11 in KF5. For reference:
http://community.kde.org/Frameworks/Policies#Frameworks_compiler_requirements_and_C.2B.2B11
We probably want that properly done within CMake or E-C-M though.
CCMAIL: plasma-devel at kde.org
CCMAIL: kde-frameworks-devel at kde.org
M +6 -0 CMakeLists.txt
http://commits.kde.org/plasma-framework/39cd64fc68b1dc2fc06f308e73ec5be1c78d28f6
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d4d0a43..4ca55c9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,6 +40,12 @@ endif()
# in the KDE build system, this is the same as CMAKE_BINARY_DIR.
configure_file(${CMAKE_SOURCE_DIR}/CTestCustom.cmake ${CMAKE_BINARY_DIR}/CTestCustom.cmake COPYONLY)
+################# Enable C++11 features for clang and gcc #################
+
+if(UNIX)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++0x")
+endif()
+
################# now find all used packages #################
set (QT_MIN_VERSION "5.2.0")
More information about the Kde-frameworks-devel
mailing list