Added EXTREME_NUMBERS option to cmake, based on option in autotools, which had somehow not made it's way over previously.

This commit is contained in:
Ward Fisher 2016-09-27 11:20:41 -06:00
parent cdf7717666
commit af9ffb7883
2 changed files with 10 additions and 0 deletions

View File

@ -889,6 +889,14 @@ ENDIF()
###
###
# Option to enable extreme numbers during testing.
###
OPTION(ENABLE_EXTREME_NUMBERS "Enable extreme numbers during testing, such as MAX_INT-1" ON)
IF(ENABLE_EXTREME_NUMBERS)
SET(USE_EXTREME_NUMBERS ON)
ENDIF()
# Enable Large file tests
IF(ENABLE_LARGE_FILE_TESTS)
SET(LARGE_FILE_TESTS ON)
@ -1381,6 +1389,7 @@ MACRO(print_conf_summary)
MESSAGE(STATUS "Coverage Tests: ${ENABLE_COVERAGE_TESTS}")
MESSAGE(STATUS "Parallel Tests: ${ENABLE_PARALLEL_TESTS}")
MESSAGE(STATUS "Large File Tests: ${ENABLE_LARGE_FILE_TESTS}")
MESSAGE(STATUS "Extreme Numbers: ${ENABLE_EXTREME_NUMBERS}")
ENDIF()
MESSAGE("")

View File

@ -109,6 +109,7 @@ are set when opening a binary file on Windows. */
#cmakedefine USE_SZIP 1
#cmakedefine USE_ZLIB 1
#cmakedefine USE_X_GETOPT 1
#cmakedefine ENABLE_EXTREME_NUMBERS
#cmakedefine LARGE_FILE_TESTS 1
#cmakedefine HAVE_DECL_ISFINITE 1
#cmakedefine HAVE_DECL_ISNAN 1