Enabling C++11 flags for clang and gcc

This commit is contained in:
Ivan Čukić 2013-06-23 10:22:37 +02:00
parent 66e8c5aee8
commit 7c5e2e49ae

View File

@ -41,6 +41,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")