# ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-fpic")
# ENABLE_IF_LINKS(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
#
-# Compiler flags for platform dependent optimization (such as
-# -march=native) must always be guarded with
-# DEAL_II_ALLOW_PLATFORM_INTROSPECTION:
-#
-# IF(DEAL_II_ALLOW_PLATFORM_INTROSPECTION)
-# ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-march=native")
-# ENDIF()
-#
# Checks for compiler features (such as C++11 support) and compiler
# specific bugs that
# - usually set up further configuration (such as preprocessor
ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-pedantic")
ENDIF()
-#
-# Enable all supported CPU instruction sets:
-#
-IF(DEAL_II_ALLOW_PLATFORM_INTROSPECTION)
- ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-march=native")
-ENDIF()
-
#
# Set the pic flag.
#
#
ENABLE_IF_LINKS(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
-
#
# Setup various warnings:
#
ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wsign-compare")
ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wswitch")
-
#
# Newer versions of gcc have a flag -Wunused-local-typedefs that, though in
# principle a good idea, triggers a lot in BOOST in various places.
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