]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove some unused CMake code. 10354/head
authorDavid Wells <drwells@email.unc.edu>
Mon, 25 May 2020 01:13:17 +0000 (21:13 -0400)
committerDavid Wells <drwells@email.unc.edu>
Mon, 25 May 2020 01:13:17 +0000 (21:13 -0400)
Now that we require C++14 neither of these is necessary.

cmake/configure/configure_2_boost.cmake
cmake/configure/configure_2_trilinos.cmake

index bb5640bfd8337e06c4845c518299a25001462012..e2b6e0b619201852cd39789a3240ea4d724ef499 100644 (file)
@@ -33,26 +33,6 @@ SET(DEAL_II_WITH_BOOST ON # Always true. We need it :-]
 
 
 MACRO(FEATURE_BOOST_CONFIGURE_COMMON)
-  #
-  # Boost version 1.62 - 1.63 checks for the availability of "emplace_hint"
-  # incorrectly: It tests for the preprocessor define
-  # BOOST_NO_CXX11_HDR_UNORDERED_MAP in .../boost/serialization/map.h
-  # thinking that that this define is characteristic for the presence of
-  # std::(multi)map::emplace_hint. This is generally correct, except for
-  # GCC before 4.8, for which the preprocessor variable is defined, but the
-  # function does not exist [1].
-  #
-  # Thus, simply define a BOOST_NO_CXX11_HDR_UNORDERED_MAP if the gcc
-  # compiler version is less than 4.8.
-  #
-  # [1] https://svn.boost.org/trac/boost/ticket/12755
-  #
-  IF( CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND
-      CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.8")
-    LIST(APPEND BOOST_DEFINITIONS "BOOST_NO_CXX11_HDR_UNORDERED_MAP")
-    LIST(APPEND BOOST_USER_DEFINITIONS "BOOST_NO_CXX11_HDR_UNORDERED_MAP")
-  ENDIF()
-
   # Some standard library implementations do not implement std::auto_ptr
   # (anymore) which was deprecated for C++11 and removed in the C++17 standard.
   # Older boost versions can't know about this but provide a possibility to
index 2bbdcc0f715ac40e038b7411559bb8d5f887880e..eb521c707a94052f497d6e3633121b47fb3ffadf 100644 (file)
@@ -293,15 +293,6 @@ MACRO(FEATURE_TRILINOS_FIND_EXTERNAL var)
         NO_SYSTEM_ENVIRONMENT_PATH NO_CMAKE_SYSTEM_PATH NO_CMAKE_FIND_ROOT_PATH
         )
 
-      IF(EXISTS ${SACADO_CONFIG_H})
-        #
-        # Determine whether Trilinos was configured with C++11 support and
-        # enabling C++11 in deal.II is mandatory.
-        #
-        FILE(STRINGS "${SACADO_CONFIG_H}" SACADO_CXX11_STRING
-          REGEX "#define HAVE_SACADO_CXX11")
-      ENDIF()
-
       #
       # GCC 6.3.0 has a bug that prevents the creation of complex
       # numbers templated on Sacado::Rad::ADvar types:

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.