diff --git a/CMakeLists.txt b/CMakeLists.txt index 5af39066376..f65349da751 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -589,6 +589,9 @@ target_compile_options( # `-Wclass-memaccess now default with -Wall but we explicitly # manage this ourselves in our serialization routines. $<$,$>:-Wno-class-memaccess> + # Intel compilers enable -ffast-math even in Debug builds. This disables finite-math-only in + # Debug builds to allow NaN/Inf checks without pages of warnings + $<$,$,$>>:-fno-finite-math-only> ) if (SINGULARITY_STRICT_WARNINGS) target_compile_options(singularity-eos_Interface INTERFACE