[invalid] CMake 3.24.0-rc4: Windows + Fortran (3.24.0-rc3 works)
CMake 3.24.0-rc1,2,3 work, but CMake 3.24.0-rc4 makes a new regression on Windows with Fortran enabled. This happens with Ninja or MinGW Makefiles. This happens with Gfortran or Intel oneAPI. This does NOT happen on Linux.
CMakeLists.txt
cmake_minimum_required(VERSION 3.20)
project(test LANGUAGES Fortran)
results in:
> cmake -S c:\temp -B C:\temp\build --fresh
with Gfortran:
-- The Fortran compiler identification is GNU 12.1.0
System is unknown to cmake, create:
Platform/Windows to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Detecting Fortran compiler ABI info
System is unknown to cmake, create:
Platform/Windows to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Detecting Fortran compiler ABI info - failed
-- Check for working Fortran compiler: C:/msys64/mingw64/bin/gfortran.exe
System is unknown to cmake, create:
Platform/Windows to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Check for working Fortran compiler: C:/msys64/mingw64/bin/gfortran.exe - works
-- Checking whether C:/msys64/mingw64/bin/gfortran.exe supports Fortran 90
System is unknown to cmake, create:
Platform/Windows to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Checking whether C:/msys64/mingw64/bin/gfortran.exe supports Fortran 90 - yes
-- Configuring done
-- Generating done
-- Build files have been written to: C:/temp/build
with Intel oneAPI
-- The Fortran compiler identification is IntelLLVM 2022.1.0 with MSVC-like command-line
System is unknown to cmake, create:
Platform/Windows to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Detecting Fortran compiler ABI info
System is unknown to cmake, create:
Platform/Windows to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Detecting Fortran compiler ABI info - failed
-- Check for working Fortran compiler: C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/bin/ifx.exe
System is unknown to cmake, create:
Platform/Windows to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Check for working Fortran compiler: C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/bin/ifx.exe - works
-- Checking whether C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/bin/ifx.exe supports Fortran 90
System is unknown to cmake, create:
Platform/Windows to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Checking whether C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/bin/ifx.exe supports Fortran 90 - yes
-- Configuring done
-- Generating done
-- Build files have been written to: C:/temp/buildi
Edited by scivision