mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
The `math(EXPR)` command documents that results must fit in a 64-bit signed integer. When built with compilers that offer the relevant intrinsics, detect overflow and issue warnings.
15 lines
319 B
CMake
15 lines
319 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(MATH)
|
|
run_cmake(MATH-WrongArgument)
|
|
run_cmake(MATH-DoubleOption)
|
|
run_cmake(MATH-TooManyArguments)
|
|
run_cmake(MATH-InvalidExpression)
|
|
run_cmake(MATH-ToleratedExpression)
|
|
run_cmake(MATH-DivideByZero)
|
|
run_cmake(MATH-ModByZero)
|
|
|
|
if(CMake_TEST_MATH_OVERFLOW)
|
|
run_cmake_script(Overflow)
|
|
endif()
|