mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 16:17:50 +08:00
99e06a64ec
* [rollup:2021-08-09] PR #16706 (@JackBoosY) [vcpkg_fixup_cmake_targets] Fix up OSX system development path * [rollup:2021-08-09] PR #19238 (@strega-nil) [scripts-audit] vcpkg_download_distfile * [rollup:2021-08-09] PR #19239 (@strega-nil) [scripts-audit] vcpkg_find_fortran * [rollup:2021-08-09] PR #19338 (@strega-nil) [tinyfiledialogs] Fix for good * [rollup:2021-08-09] PR #19348 (@strega-nil) [scripts-audit] vcpkg_fixup_pkgconfig * fix ports.cmake with newer vcpkg_download_distfile * fix vcpkg create * move vcpkg_common_definitions down so that it's not incorrect * fix vcpkg_internal_get_cmake_vars Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
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_configure_cmake(...
|
|
OPTIONS
|
|
${fortran_args}
|
|
)
|
|
```
|
|
|
|
## Source
|
|
[scripts/cmake/vcpkg\_find\_fortran.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_find_fortran.cmake)
|