#
# DEAL_II_HAVE_CXX11_FLAG
# DEAL_II_CXX11_FLAG
-# DEAL_II_CAN_USE_CXX1X
# DEAL_II_CAN_USE_CXX11
# HAVE_ISNAN
# HAVE_UNDERSCORE_ISNAN
MESSAGE(STATUS "Sufficient C++11 support. Enabling ${DEAL_II_CXX11_FLAG}.")
- SET(DEAL_II_CAN_USE_CXX1X TRUE) # TODO
SET(DEAL_II_CAN_USE_CXX11 TRUE)
ADD_FLAGS(CMAKE_CXX_FLAGS "${DEAL_II_CXX11_FLAG}")
MESSAGE(STATUS "Insufficient C++11 support. Disabling ${DEAL_II_CXX11_FLAG}.")
ENDIF()
-
- IF(DEAL_II_CAN_USE_CXX11)
- #
- # 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
- #
- # TODO: Actually we have to export the test results somehow. :-]
- #
-
- CHECK_CXX_SOURCE_COMPILES(
- "
- #include <vector>
- std::vector<int> v;
- int main(){ auto i = v.begin(); *i; return 0;}
- "
- DEAL_II_HAVE_CXX11_AUTO_TYPE)
-
- CHECK_CXX_SOURCE_COMPILES(
- "
- #include <vector>],
- std::vector<int> v;
- int main(){ for (std::vector<int>::iterator i : v) *i; return 0;}
- "
- DEAL_II_HAVE_CXX11_RANGE_BASED_FOR)
-
- IF( DEAL_II_HAVE_CXX11_AUTO_TYPE AND
- DEAL_II_HAVE_CXX11_RANGE_BASED_FOR )
-
- MESSAGE(STATUS "Additional C++11 support available.")
-
- SET(DEAL_II_CAN_USE_ADDITIONAL_CXX1X_FEATURES)
-
- ENDIF()
- ENDIF()
+#
+# Currently unused
+#
+# IF(DEAL_II_CAN_USE_CXX11)
+# #
+# # 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
+# #
+# # TODO: Actually we have to export the test results somehow. :-]
+# #
+#
+# CHECK_CXX_SOURCE_COMPILES(
+# "
+# #include <vector>
+# std::vector<int> v;
+# int main(){ auto i = v.begin(); *i; return 0;}
+# "
+# DEAL_II_HAVE_CXX11_AUTO_TYPE)
+#
+# CHECK_CXX_SOURCE_COMPILES(
+# "
+# #include <vector>],
+# std::vector<int> v;
+# int main(){ for (std::vector<int>::iterator i : v) *i; return 0;}
+# "
+# DEAL_II_HAVE_CXX11_RANGE_BASED_FOR)
+#
+# IF( DEAL_II_HAVE_CXX11_AUTO_TYPE AND
+# DEAL_II_HAVE_CXX11_RANGE_BASED_FOR )
+#
+# MESSAGE(STATUS "Additional C++11 support available.")
+#
+# SET(DEAL_II_CAN_USE_ADDITIONAL_CXX1X_FEATURES)
+# ENDIF()
+#
+# ENDIF()
POP_TEST_FLAG()