Revert "Revert "Enabling C++11 flags for clang and gcc""
This reverts commit 597397b41f
.
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@kde.org
CCMAIL: kde-frameworks-devel@kde.org
This commit is contained in:
parent
07df8225d8
commit
39cd64fc68
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user