[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdev-qmljs] /: Enable C++11
From:       Milian Wolff <mail () milianw ! de>
Date:       2013-12-14 14:49:11
Message-ID: E1VrqWl-0007wz-BE () scm ! kde ! org
[Download RAW message or body]

Git commit 9bdac1973cb6bed36b9d0518d618e0371d2f8ee9 by Milian Wolff.
Committed on 14/12/2013 at 14:49.
Pushed by mwolff into branch 'master'.

Enable C++11

M  +4    -0    CMakeLists.txt

http://commits.kde.org/kdev-qmljs/9bdac1973cb6bed36b9d0518d618e0371d2f8ee9

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 18d09bb..0208a26 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,6 +33,10 @@ include_directories(
 add_definitions(-DQT_CREATOR) # :D
 add_definitions(-DQML_BUILD_STATIC_LIB=0 -DQMLJS_BUILD_DIR)
 
+if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR \
CMAKE_CXX_COMPILER_ID STREQUAL "Intel") +    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
-std=c++11") +endif()
+
 add_subdirectory(libs)
 add_subdirectory(duchain)
 add_subdirectory(tests)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic