vcpkg/docs/maintainers/vcpkg_find_fortran.md
Thomas1664 f7db911f44
[vcpkg docs] Remove deprecated functions from docs (#23018)
* Remove deprecated functions from docs

* Fix docs in cmake files

* Fix links
2022-02-17 17:08:33 -08:00

675 B

vcpkg_find_fortran

The latest version of this document lives in the vcpkg repo.

Checks if a Fortran compiler can be found. Windows(x86/x64) Only: If not it will switch/enable MinGW gfortran and return required cmake args for building.

Usage

vcpkg_find_fortran(<out_var>)

Example

vcpkg_find_fortran(fortran_args)
# ...
vcpkg_cmake_configure(...
    OPTIONS
        ${fortran_args}
)

Source

scripts/cmake/vcpkg_find_fortran.cmake