Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions doc/README.cmake_build
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,35 @@ Advanced Configuration
WRF_CASE option. Note that the value used is the actual name of the value, not
the numeric shorthand used during interactive dialog.

Note: When using the cmake `*_ROOT` package variables to control where certain
depenendencies are found, please refer to the top-level CMakeLists.txt
(i.e. <your WRF dir>/CMakeLists.txt) for all instances of `find_package()`
for the latest accurate list of all possible values. The construction of the
respective `*_ROOT` variable for a package uses the name in the call to
`find_package( <PackageName> )` verbatim and *is case sensitive* resulting
in `<PackageName>_ROOT`.

The current list of possible `*_ROOT` is as follows :
Dependecies always used :
* netCDF_ROOT
* netCDF-Fortran_ROOT
* ZLIB_ROOT

Conditional depenendencies based on configuration:
* MPI_ROOT
* OpenMP_ROOT
* HDF5_ROOT
* Jasper_ROOT
* RPC_ROOT
* BISON_ROOT
* FLEX_ROOT

One can make use of passing in `CMAKE_PREFIX_PATH` to provide a lower priority
general search location if multiple depenendencies reside in the same directory.
Please refer to https://cmake.org/cmake/help/v3.20/command/find_package.html
for further documentation on using `*_ROOT` variables or other control methods
of resolving depenendency locations. Please note the version specification
as WRF uses the logic of CMake v3.20 even if you have a newer version of cmake installed.

- The 'compile_new' has a complimentary feature to pair with 'configure_new'.
This feature is specifying an alternate build directory to use as a compile
Expand Down