I'm running a custom built CMake 3.1 on Ubuntu Server 12. I have Clang
3.4 installed. At the top of my root CMakeLists.txt, I have enabled
C++11 like so:
cmake_minimum_required( VERSION 3.1 )
if( UNIX )
set( CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++" )
endif()
project( FrontEnd )
However when I build, it fails:
fe@BLD01:~/frontend/build$ make
[ 0%] Copying third party binaries
[ 0%] Built target copy_dlls
[ 0%] Building CXX object
Core/UI/CMakeFiles/UI.dir/Source/Animations/AnimationManager.cpp.o
In file included from
/home/fe/frontend/Core/UI/Source/Animations/AnimationManager.cpp:27:
In file included from /home/fe/frontend/Core/UI/Source/Main/stdinc.h:292:
In file included from /home/fe/frontend/Core/UI/Source/Logs/ErrorLog.h:18:
/home/fe/frontend/Core/UI/Source/Logs/LogLevels.h:18:9: warning:
scoped enumerations are a C++11 extension [-Wc++11-extensions]
How do I get C++11 working?
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake