diff options
author | Seth R Johnson <johnsonsr@ornl.gov> | 2021-10-01 01:48:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-10-01 17:00:18 (GMT) |
commit | 2a00e5072d0639a4b88bee811df2c5acce37ea62 (patch) | |
tree | 6a8fb344ecf01789870971090cb1a275cb17ad06 /Modules/FortranCInterface | |
parent | 7612abd52f192a13848a4d74191633a008892449 (diff) | |
download | CMake-2a00e5072d0639a4b88bee811df2c5acce37ea62.zip CMake-2a00e5072d0639a4b88bee811df2c5acce37ea62.tar.gz CMake-2a00e5072d0639a4b88bee811df2c5acce37ea62.tar.bz2 |
FortranCInterface: Fix regression in timestamp check
Since commit d7c8030541 (FortranCInterface: Fix misuse of IS_NEWER_THAN
in timestamp check, 2021-02-21, v3.21.0-rc1~631^2~3), FortranCInterface
checks for `Output.cmake.in` in the build tree instead of the source
tree as before. This caused it to always re-run the detection.
Fixes: #22709
Diffstat (limited to 'Modules/FortranCInterface')
-rw-r--r-- | Modules/FortranCInterface/Detect.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/FortranCInterface/Detect.cmake b/Modules/FortranCInterface/Detect.cmake index 9e5726b..4d3cb00 100644 --- a/Modules/FortranCInterface/Detect.cmake +++ b/Modules/FortranCInterface/Detect.cmake @@ -8,11 +8,10 @@ configure_file(${FortranCInterface_SOURCE_DIR}/Input.cmake.in # configuration changes. if(NOT EXISTS ${FortranCInterface_BINARY_DIR}/Output.cmake OR NOT EXISTS ${FortranCInterface_BINARY_DIR}/Input.cmake - OR NOT EXISTS ${FortranCInterface_BINARY_DIR}/Output.cmake.in OR NOT ${FortranCInterface_BINARY_DIR}/Output.cmake IS_NEWER_THAN ${FortranCInterface_BINARY_DIR}/Input.cmake OR NOT ${FortranCInterface_SOURCE_DIR}/Output.cmake - IS_NEWER_THAN ${FortranCInterface_BINARY_DIR}/Output.cmake.in + IS_NEWER_THAN ${FortranCInterface_SOURCE_DIR}/Output.cmake.in OR NOT ${FortranCInterface_BINARY_DIR}/Output.cmake IS_NEWER_THAN ${FortranCInterface_SOURCE_DIR}/CMakeLists.txt OR NOT ${FortranCInterface_BINARY_DIR}/Output.cmake |