cmake_minimum_required(VERSION 2.6)
project(LAPACK Fortran)
+# Configure the warning and code coverage suppression file
+configure_file(
+ "${LAPACK_SOURCE_DIR}/CTestCustom.cmake.in"
+ "${LAPACK_BINARY_DIR}/CTestCustom.cmake"
+ COPYONLY
+)
+
# Add the CMake directory for custon CMake modules
set(CMAKE_MODULE_PATH "${LAPACK_SOURCE_DIR}/CMAKE" ${CMAKE_MODULE_PATH})
--- /dev/null
+#
+# For further details regarding this file,
+# see http://www.vtk.org/Wiki/CMake_Testing_With_CTest#Customizing_CTest
+#
+
+SET (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 50)
+SET (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 50)
+
+# Files to explicitly exclude from code coverage
+SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
+ ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
+
+ # Exclude the internal BLAS libraries
+ "/BLAS/"
+
+ # Exclude the testing code itself from code coverage
+ "/TESTING/"
+)
+
+# Warnings to explicitly ignore
+SET(CTEST_CUSTOM_WARNING_EXCEPTION
+ ${CTEST_CUSTOM_WARNING_EXCEPTION}
+
+ # Common warning when linking ATLAS built with GNU Fortran 4.1 and building
+ # with GNU Fortran 4.4. It can be safely ignored.
+ "libgfortran.*may conflict with libgfortran"
+)