Finally disable cxx14 if cxx11 detection failed for whatever reason.
Before we could end up in a situation with CXX14=TRUE and CXX11=FALSE
even if nothing was specified during configure time. Running cmake a
second time would then bail out.
ENDIF()
ENDIF()
+
+#
+# Finally disable cxx14 if cxx11 detection failed for whatever reason. This
+# can happen if any of our compile checks above fails, for example threading
+# support.
+#
+IF (DEAL_II_HAVE_CXX14 AND NOT DEAL_II_HAVE_CXX11)
+ MESSAGE(STATUS "Disabling CXX14 support because CXX11 detection failed.")
+ SET(DEAL_II_HAVE_CXX14 FALSE)
+ENDIF()
+
#
# Set up a configuration options for C++11 and C++14 support:
#
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