Ninja: Skip Fortran preprocessing if Fortran_PREPROCESS is OFF
If `Fortran_PREPROCESS` is explicitly turned off for a source file then we know it does not need to be preprocessed. Teach the Ninja generator to skip preprocessing in this case. Otherwise we still must preprocess just in case. Fixes: #18870
Showing
- Help/prop_sf/Fortran_PREPROCESS.rst 5 additions, 0 deletionsHelp/prop_sf/Fortran_PREPROCESS.rst
- Help/prop_tgt/Fortran_PREPROCESS.rst 5 additions, 0 deletionsHelp/prop_tgt/Fortran_PREPROCESS.rst
- Source/cmNinjaTargetGenerator.cxx 54 additions, 10 deletionsSource/cmNinjaTargetGenerator.cxx
- Source/cmNinjaTargetGenerator.h 2 additions, 0 deletionsSource/cmNinjaTargetGenerator.h
- Tests/FortranOnly/CMakeLists.txt 22 additions, 24 deletionsTests/FortranOnly/CMakeLists.txt
Loading
Please register or sign in to comment