From 1db1132c67c87c9283d7311c45ccfc3eaa70fd38 Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Sat, 27 Jan 2024 12:27:49 +1100 Subject: FortranCInterface: Fix wrong path when deciding if redetection is needed d7c8030541 (FortranCInterface: Fix misuse of IS_NEWER_THAN in timestamp check, 2021-02-21) updated the IS_NEWER_THAN logic, but it introduced a couple of errors. 2a00e5072d (FortranCInterface: Fix regression in timestamp check, 2021-09-30) addressed one of those errors, but there was still one left behind that wasn't noticed. The Output.cmake file is in the build directory, but there was still one reference to it that incorrectly used a path to it in the source directory. Issue: #22709 --- Modules/FortranCInterface/Detect.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/FortranCInterface/Detect.cmake b/Modules/FortranCInterface/Detect.cmake index 010661e..338a586 100644 --- a/Modules/FortranCInterface/Detect.cmake +++ b/Modules/FortranCInterface/Detect.cmake @@ -10,7 +10,7 @@ if(NOT EXISTS ${FortranCInterface_BINARY_DIR}/Output.cmake OR NOT EXISTS ${FortranCInterface_BINARY_DIR}/Input.cmake OR NOT ${FortranCInterface_BINARY_DIR}/Output.cmake IS_NEWER_THAN ${FortranCInterface_BINARY_DIR}/Input.cmake - OR NOT ${FortranCInterface_SOURCE_DIR}/Output.cmake + OR NOT ${FortranCInterface_BINARY_DIR}/Output.cmake IS_NEWER_THAN ${FortranCInterface_SOURCE_DIR}/Output.cmake.in OR NOT ${FortranCInterface_BINARY_DIR}/Output.cmake IS_NEWER_THAN ${FortranCInterface_SOURCE_DIR}/CMakeLists.txt -- cgit v0.12