From a3801792853491c30856ca511cc19fb2e52d1ef3 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 24 Mar 2026 09:48:57 -0400 Subject: [PATCH] Tests: Fix FortranOnly test with Intel Fortran VS integration --- Tests/FortranOnly/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tests/FortranOnly/CMakeLists.txt b/Tests/FortranOnly/CMakeLists.txt index d181ad5f66..a0c299dc20 100644 --- a/Tests/FortranOnly/CMakeLists.txt +++ b/Tests/FortranOnly/CMakeLists.txt @@ -200,7 +200,9 @@ if(CMAKE_Fortran_COMPILE_OPTIONS_PREPROCESS_OFF AND endif() # Test that we are safe from infinite include recursion in dependency scanner -# (SunPro Fortran compiler does not support recursive inclusion) -if (NOT CMAKE_Fortran_COMPILER_ID STREQUAL "SunPro") +if (# The SunPro Fortran compiler does not support recursive inclusion + NOT CMAKE_Fortran_COMPILER_ID STREQUAL "SunPro" + # The Intel Fortran VS integration overflows its stack. + AND NOT CMAKE_GENERATOR MATCHES "Visual Studio") add_executable(test_include_loop test_include_loop.F) endif()