diff options
author | Brad King <brad.king@kitware.com> | 2023-01-16 19:41:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-01-18 22:59:10 (GMT) |
commit | f6ed2585e595305d4866e4128bf98e9236b6ecd2 (patch) | |
tree | e8d924affc5a2e563038719cc0e20b15ee958fd0 /Modules/CMakeDetermineFortranCompiler.cmake | |
parent | 0f688386eabafb1e70a172004df8be4d9dc1d037 (diff) | |
download | CMake-f6ed2585e595305d4866e4128bf98e9236b6ecd2.zip CMake-f6ed2585e595305d4866e4128bf98e9236b6ecd2.tar.gz CMake-f6ed2585e595305d4866e4128bf98e9236b6ecd2.tar.bz2 |
Modules: Record system inspection steps in the configure log
Replace old-style `file(APPEND .../CMake{Output,Error}.log)` logging
with calls to `message(CONFIGURE_LOG)` to record the steps in the
`CMakeConfigureLog.yaml` configure log instead.
Issue: #23200
Diffstat (limited to 'Modules/CMakeDetermineFortranCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineFortranCompiler.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CMakeDetermineFortranCompiler.cmake b/Modules/CMakeDetermineFortranCompiler.cmake index d169012..8cbaf70 100644 --- a/Modules/CMakeDetermineFortranCompiler.cmake +++ b/Modules/CMakeDetermineFortranCompiler.cmake @@ -187,11 +187,11 @@ if(NOT CMAKE_Fortran_COMPILER_ID_RUN) if(NOT CMAKE_COMPILER_RETURN) if(CMAKE_COMPILER_OUTPUT MATCHES "THIS_IS_GNU") set(CMAKE_Fortran_COMPILER_ID "GNU") - file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log + message(CONFIGURE_LOG "Determining if the Fortran compiler is GNU succeeded with " "the following output:\n${CMAKE_COMPILER_OUTPUT}\n\n") else() - file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log + message(CONFIGURE_LOG "Determining if the Fortran compiler is GNU failed with " "the following output:\n${CMAKE_COMPILER_OUTPUT}\n\n") endif() |