SET(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
+ "${CMAKE_SOURCE_DIR}/contrib/cmake/"
"${CMAKE_SOURCE_DIR}/contrib/cmake/modules/"
- "${CMAKE_SOURCE_DIR}/contrib/cmake/configure/"
)
-
#
# Load all macros:
#
INCLUDE(${file})
ENDFOREACH()
+INCLUDE(setup_external_macros)
+
#
# We have to initialize some cached variable before PROJECT is called, so
-INCLUDE(CheckCXXSourceCompiles)
-INCLUDE(CheckIncludeFiles)
-
#
# Check for various compiler bugs:
#
-
#
# Versions of GCC before 3.0 had a problem with the explicit
# instantiation of member templates when the member was in fact
-INCLUDE(CheckCXXSourceCompiles)
-INCLUDE(CheckCXXCompilerFlag)
-INCLUDE(CheckCXXSourceRuns)
-
-
#
# Check for various compiler features.
#
-INCLUDE(CheckCXXSourceCompiles)
-INCLUDE(CheckCXXCompilerFlag)
-INCLUDE(CheckCXXSourceRuns)
-INCLUDE(CheckIncludeFiles)
-
#
# Check for various C++ language features
#
# Configuration for the blas library:
#
-INCLUDE(CheckFunctionExists)
-
MACRO(FEATURE_BLAS_FIND_EXTERNAL var)
FIND_PACKAGE(BLAS)
# Configuration for the tbb library:
#
-INCLUDE(CheckCXXSourceCompiles)
#
# Set up genereal threading. The macro will be included in
# Configuration for the trilinos library:
#
-INCLUDE(CheckCXXSourceCompiles)
-INCLUDE(CheckIncludeFile)
-
MACRO(FEATURE_TRILINOS_FIND_EXTERNAL var)
--- /dev/null
+#
+# Include all external (cmake) macros that we will use:
+#
+
+INCLUDE(CheckCXXCompilerFlag)
+INCLUDE(CheckCXXSourceCompiles)
+INCLUDE(CheckCXXSourceRuns)
+INCLUDE(CheckFunctionExists)
+INCLUDE(CheckIncludeFiles)
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