"Always use the bundled umfpack library instead of an external one."
OFF)
+#
+# Resolve a cache invalidation problem by searching for these flags
+# unconditionally. They're used for compiling the sources in
+# ${UMFPACK_FOLDER}/UMFPACK/Source depending on cached variables.
+#
+ENABLE_IF_SUPPORTED(_dummy "-Wno-sign-compare")
+ENABLE_IF_SUPPORTED(_dummy "-Wno-write-strings")
+
IF(FEATURE_UMFPACK_BUNDLED_CONFIGURED)
ADD_SUBDIRECTORY(${UMFPACK_FOLDER}/UMFPACK/Source)
ADD_SUBDIRECTORY(${UMFPACK_FOLDER}/AMD/Source)
ENDMACRO()
+#
+# Resolve a cache invalidation problem by searching for these flags
+# unconditionally. They're used in FEATURE_THREADS_CONFIGURE_BUNDLED
+# depending on cached variables.
+#
+ENABLE_IF_SUPPORTED(_dummy "-Wno-parentheses")
+ENABLE_IF_SUPPORTED(_dummy "-Wno-long-long")
+
+
MACRO(FEATURE_THREADS_CONFIGURE_BUNDLED)
#
# Setup threading (before configuring our build...)
ENDMACRO()
+#
+# Resolve a cache invalidation problem by searching for this flag
+# unconditionally. It is used in FEATURE_PETSC_CONFIGURE_EXTERNAL
+# depending on cached variables.
+#
+ENABLE_IF_SUPPORTED(_dummy "-Wno-long-long")
+
MACRO(FEATURE_PETSC_CONFIGURE_EXTERNAL)
INCLUDE_DIRECTORIES(${PETSC_INCLUDE_DIRS})
UNSET(TRILINOS_SUPPORTS_CPP11 CACHE)
UNSET(TRILINOS_HAS_C99_TR1_WORKAROUND CACHE)
- #
- # TODO: Resolve this cache invalidation issue and then put these checks
- # back into FEATURE_TRILINO_CONFIGURE_EXTERNAL where they belong to.
- #
- ENABLE_IF_SUPPORTED(TRILINOS_DISABLE_WARNING_FLAGS "-Wno-unused")
- ENABLE_IF_SUPPORTED(TRILINOS_DISABLE_WARNING_FLAGS "-Wno-extra")
- ENABLE_IF_SUPPORTED(TRILINOS_DISABLE_WARNING_FLAGS "-Wno-overloaded-virtual")
-
ENDIF(TRILINOS_FOUND)
ENDMACRO()
+#
+# Resolve a cache invalidation problem by searching for these flags
+# unconditionally. They're used in FEATURE_TRILINOS_CONFIGURE_EXTERNAL
+# depending on cached variables.
+#
+ENABLE_IF_SUPPORTED(_dummy "-Wno-unused")
+ENABLE_IF_SUPPORTED(_dummy "-Wno-extra")
+ENABLE_IF_SUPPORTED(_dummy "-Wno-overloaded-virtual")
+
MACRO(FEATURE_TRILINOS_CONFIGURE_EXTERNAL)
INCLUDE_DIRECTORIES(${TRILINOS_INCLUDE_DIRS})
#
# Disable a bunch of warnings caused by Trilinos headers:
#
- ADD_FLAGS(CMAKE_CXX_FLAGS "${TRILINOS_DISABLE_WARNING_FLAGS}")
+ ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-unused")
+ ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-extra")
+ ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-overloaded-virtual")
ENDMACRO()