[Orxonox-commit 6076] r10734 - code/branches/cpp11_v2/cmake

landauf at orxonox.net landauf at orxonox.net
Sat Oct 31 18:40:29 CET 2015


Author: landauf
Date: 2015-10-31 18:40:29 +0100 (Sat, 31 Oct 2015)
New Revision: 10734

Modified:
   code/branches/cpp11_v2/cmake/CompilerConfigGCC.cmake
Log:
fixed build for mingw (apparently it requires gnu extensions to compile)

Modified: code/branches/cpp11_v2/cmake/CompilerConfigGCC.cmake
===================================================================
--- code/branches/cpp11_v2/cmake/CompilerConfigGCC.cmake	2015-10-31 17:11:53 UTC (rev 10733)
+++ code/branches/cpp11_v2/cmake/CompilerConfigGCC.cmake	2015-10-31 17:40:29 UTC (rev 10734)
@@ -64,8 +64,7 @@
 ADD_COMPILER_FLAGS("-Os"                   MinSizeRel     CACHE)
 
 # Introducing c++11
-# Note: there is also 'std=gnu++11', but that might not be portable to windows
-ADD_COMPILER_FLAGS("-std=c++0x" CACHE)
+ADD_COMPILER_FLAGS("-std=gnu++11" CACHE)
 
 # CMake doesn't seem to set the PIC flags right on certain 64 bit systems
 IF(NOT MINGW AND ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")




More information about the Orxonox-commit mailing list