Files
cmake/Tests/RunCMake/math/RunCMakeTest.cmake
T
Brad King 099c05dd04 math: Avoid signed integer overflow when intrinsics are available
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.
2026-02-28 07:03:51 -05:00

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()