mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-30 18:29:37 -06:00
Tests: Enable Fortran part of CompileOptions test on single-config generators
This commit is contained in:
@@ -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 $<CONFIGURATION>)
|
||||
else()
|
||||
set(CompileOptions_BUILD_OPTIONS -DCMAKE_BUILD_TYPE=$<CONFIGURATION>)
|
||||
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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user