Skip to content

Commit

Permalink
Add documentation about the VCPKG_FORTRAN_COMPILER option
Browse files Browse the repository at this point in the history
  • Loading branch information
albertziegenhagel committed Jun 8, 2017
1 parent fa83024 commit 01e5d1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/users/triplets.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ Specifies the C/C++ compiler toolchain to use.

This can be set to `v141`, `v140`, or left blank. If left blank, we select the latest compiler toolset available on your machine.

### VCPKG_FORTRAN_COMPILER
Specifies the Fortran compiler to use.

This can be set to `Intel`, `PGI`, or left blank. If left blank, ports that need a Fortran compiler will fail with an error message.

The Fortran compiler has to be installed by the user manually.

## Per-port customization
The CMake Macro `PORT` will be set when interpreting the triplet file and can be used to change settings (such as `VCPKG_LIBRARY_LINKAGE`) on a per-port basis.

Expand Down
2 changes: 1 addition & 1 deletion scripts/cmake/vcpkg_enable_fortran.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,6 @@ function(vcpkg_enable_fortran)
message(FATAL_ERROR "Unknown fortran compiler \"${VCPKG_FORTRAN_COMPILER}\".")
endif()
else()
message(FATAL_ERROR "No fortran compiler configured. Please see [docs] for valid fortran settings.") # TODO: add correct reference to [docs]
message(FATAL_ERROR "No fortran compiler configured. Please see http://vcpkg.readthedocs.io/en/latest/users/triplets/ for valid fortran settings.")
endif()
endfunction()

0 comments on commit 01e5d1b

Please sign in to comment.