]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
The standard is now called C++11.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 15 Sep 2012 20:37:43 +0000 (20:37 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 15 Sep 2012 20:37:43 +0000 (20:37 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26399 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/cmake/check/check_for_cxx_features.cmake

index 65ba3a282fa819179ba9ac312edbdf206293a737..d9ed35e8cb73b642380f21c179f454a76ffda373 100644 (file)
@@ -19,12 +19,14 @@ CHECK_CXX_SOURCE_COMPILES(
 
 
 #
-# C++0x Support:
+# C++11 Support:
 #
 
 
-# See if there is a compiler flag to enable C++0x features
+# See if there is a compiler flag to enable C++11 features
 # (Only test for -std=c++0x for the moment.)
+#
+# TODO: We should also check for -std=c++11.
 CHECK_CXX_COMPILER_FLAG(
   "-std=c++0x"
   DEAL_II_HAVE_CXX0X_FLAG)
@@ -142,7 +144,7 @@ IF(DEAL_II_HAVE_CXX0X_FLAG)
       DEAL_II_HAVE_CXX0X_TUPLE AND
       DEAL_II_HAVE_CXX0X_TYPE_TRAITS )
 
-    MESSAGE(STATUS "Sufficient C++0x support. Enabling -std=c++0x.")
+    MESSAGE(STATUS "Sufficient C++11 support. Enabling -std=c++0x.")
 
     SET(DEAL_II_CAN_USE_CXX1X TRUE)
 
@@ -150,12 +152,12 @@ IF(DEAL_II_HAVE_CXX0X_FLAG)
 
   ELSE()
 
-    MESSAGE(STATUS "Insufficient C++0x support. Disabling -std=c++0x.")
+    MESSAGE(STATUS "Insufficient C++11 support. Disabling -std=c++0x.")
   ENDIF()
 
   IF(DEAL_II_CAN_USE_CXX1X)
     #
-    # Also test for a couple of C++0x things that we don't use in the
+    # Also test for a couple of C++11 things that we don't use in the
     # library but that users may want to use in their applications and that
     # we might want to test in the testsuite
     #
@@ -179,7 +181,7 @@ IF(DEAL_II_HAVE_CXX0X_FLAG)
     IF( DEAL_II_HAVE_CXX0X_AUTO_TYPE AND
         DEAL_II_HAVE_CXX0X_RANGE_BASED_FOR )
 
-      MESSAGE(STATUS "Additional C++0x support available.")
+      MESSAGE(STATUS "Additional C++11 support available.")
 
       SET(DEAL_II_CAN_USE_ADDITIONAL_CXX1X_FEATURES)
 
@@ -189,7 +191,7 @@ IF(DEAL_II_HAVE_CXX0X_FLAG)
   LIST(REMOVE_ITEM CMAKE_REQUIRED_FLAGS "-std=c++0x")
 
 ELSE()
-    MESSAGE(STATUS "Insufficient C++0x support. Disabling -std=c++0x.")
+    MESSAGE(STATUS "Insufficient C++11 support. Disabling -std=c++0x.")
 ENDIF()
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.