Description
This is not a stdlib-specific problem, but others may encounter the same obstacle. When I try to build stdlib using cmake on Windows, I get the following problem. How do I tell cmake to use gfortran and specify its location? I see discussion of this problem here but don't see a resolution.
c:\fortran\public_domain\github\stdlib_20210302>gfortran --version
GNU Fortran (GCC) 11.0.0 20200927 (experimental)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
c:\fortran\public_domain\github\stdlib_20210302>cmake -B build
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.21322.
-- The Fortran compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_Fortran_COMPILER could be found.
-- Configuring incomplete, errors occurred!
See also "C:/fortran/public_domain/github/stdlib_20210302/build/CMakeFiles/CMakeOutput.log".
See also "C:/fortran/public_domain/github/stdlib_20210302/build/CMakeFiles/CMakeError.log".