From 8dd9554d24287cddb0a9410c35fceb12323aaa63 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 31 Jan 2024 14:51:56 -0500 Subject: Tests: Enable Fortran part of CompileOptions test on single-config generators --- Tests/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 1f384c3..1ee45d6 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -512,14 +512,14 @@ if(BUILD_TESTING) ADD_TEST_MACRO(EmptyLibrary EmptyLibrary) ADD_TEST_MACRO(CompileDefinitions CompileDefinitions) - if(CMAKE_Fortran_COMPILER) - set(CompileOptions_BUILD_OPTIONS -DTEST_FORTRAN=1) - endif() if(_isMultiConfig) set(CompileOptions_CTEST_OPTIONS --build-config $) else() set(CompileOptions_BUILD_OPTIONS -DCMAKE_BUILD_TYPE=$) endif() + if(CMAKE_Fortran_COMPILER) + list(APPEND CompileOptions_BUILD_OPTIONS -DTEST_FORTRAN=1) + endif() ADD_TEST_MACRO(CompileOptions CompileOptions) set_property(TEST CompileOptions APPEND PROPERTY LABELS "Fortran") -- cgit v0.12