mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 15:07:50 +08:00
f7db911f44
* Remove deprecated functions from docs * Fix docs in cmake files * Fix links
26 lines
675 B
Markdown
26 lines
675 B
Markdown
# vcpkg_find_fortran
|
|
|
|
The latest version of this document lives in the [vcpkg repo](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_find_fortran.md).
|
|
|
|
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
|
|
```cmake
|
|
vcpkg_find_fortran(<out_var>)
|
|
```
|
|
|
|
## Example
|
|
```cmake
|
|
vcpkg_find_fortran(fortran_args)
|
|
# ...
|
|
vcpkg_cmake_configure(...
|
|
OPTIONS
|
|
${fortran_args}
|
|
)
|
|
```
|
|
|
|
## Source
|
|
[scripts/cmake/vcpkg\_find\_fortran.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_find_fortran.cmake)
|