![]() So it seems CMake is capable of finding the gfortran executable and build a project with it even outside of Cygwin or MinGW-w64/MSYS2 (the two platforms I use gfortran on when running Windows). ![]() Building Fortran object CMakeFiles/regex_/src/regex_ Scanning dependencies of target regex_test.exe Linking Fortran static library libfortran_regex.a Building Fortran object CMakeFiles/fortran_regex.dir/src/regex_parser_ Building Fortran object CMakeFiles/fortran_regex.dir/src/regex_state_ Scanning dependencies of target fortran_regex – Build files have been written to: D:/fortran/regexp/build d:\fortran\regexp\build>make ![]() – Checking whether D:/equation/bin/gfortran.exe supports Fortran 90 - yes – Checking whether D:/equation/bin/gfortran.exe supports Fortran 90 – Detecting Fortran compiler ABI info - done – Check for working Fortran compiler: D:/equation/bin/gfortran.exe - works – Check for working Fortran compiler: D:/equation/bin/gfortran.exe – The Fortran compiler identification is GNU 10.2.0 CMake found the gfortran executable from and the make utility from that installation did the restĭ:\fortran\regexp\build>d:\cmake-3.17.2-win64\bin\cmake -G “Unix Makefiles” ….Ran CMake in a suitable build directory with the command:.Set the path to include d:\equation\bin. ![]() Open a command window (DOS box, nothing fancy like PowerShell).I have just done the following experiment: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |