diff options
author | Brad King <brad.king@kitware.com> | 2023-05-08 21:04:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-05-09 13:56:42 (GMT) |
commit | 1f1894af1fb263762c062c55fce28b5f9678dc5e (patch) | |
tree | 5c02c55f2849221450d3c4ff1c4e14814c7a3475 /Tests/RunCMake/BuildDepends/RunCMakeTest.cmake | |
parent | 9075ebda60922d8d11dd15d15c714c36ec3874cd (diff) | |
download | CMake-1f1894af1fb263762c062c55fce28b5f9678dc5e.zip CMake-1f1894af1fb263762c062c55fce28b5f9678dc5e.tar.gz CMake-1f1894af1fb263762c062c55fce28b5f9678dc5e.tar.bz2 |
Ninja: Fix Fortran INCLUDE directive dependencies when not preprocessing
Since commit b0a6161190 (Fortran: Add Fortran_PREPROCESS property,
2020-04-24, v3.18.0-rc1~116^2~3), if `Fortran_PREPROCESS` is `OFF`, the
Ninja generator does not properly detect dependencies on sources loaded
via the Fortran INCLUDE directive. Fix this and add a test.
Diffstat (limited to 'Tests/RunCMake/BuildDepends/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/BuildDepends/RunCMakeTest.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake b/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake index b527580..dfa4f49 100644 --- a/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake +++ b/Tests/RunCMake/BuildDepends/RunCMakeTest.cmake @@ -68,6 +68,10 @@ if(NOT RunCMake_GENERATOR STREQUAL "Xcode") unset(run_BuildDepends_skip_step_2) endif() +if(CMake_TEST_Fortran) + run_BuildDepends(FortranInclude) +endif() + run_BuildDepends(Custom-Symbolic-and-Byproduct) run_BuildDepends(Custom-Always) |