diff --git a/CMakeLists.txt b/CMakeLists.txt index bf76c372..b71abbe3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,8 +179,7 @@ set_property(GLOBAL PROPERTY CTEST_TARGETS_ADDED 1) FetchContent_Declare( yaml-cpp URL "https://github.com/loot/yaml-cpp/archive/0.8.0+merge-key-support.2.tar.gz" - URL_HASH "SHA256=e91779044cd4025ec10ed31986031031ef22ebce90a64cc8f85e7c7e95a1abc6" - FIND_PACKAGE_ARGS) + URL_HASH "SHA256=e91779044cd4025ec10ed31986031031ef22ebce90a64cc8f85e7c7e95a1abc6") # Set BUILD_SHARED_LIBS=OFF to prevent fmt and spdlog from being built as shared # libraries. diff --git a/README.md b/README.md index b3ff0518..5dca21b8 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ Parameter | Values | Default |Description `ESPLUGIN_URL` | A URL | A GitHub release archive URL | The URL to get a source code archive from. This can be used to supply a local path if the archive has already been downloaded (e.g. for offline builds). `LIBLOADORDER_URL` | A URL | A GitHub release archive URL | The URL to get a source code archive from. This can be used to supply a local path if the archive has already been downloaded (e.g. for offline builds). `LOOT_CONDITION_INTERPRETER_URL` | A URL | A GitHub release archive URL | The URL to get a source code archive from. This can be used to supply a local path if the archive has already been downloaded (e.g. for offline builds). +`FETCHCONTENT_SOURCE_DIR_YAML-CPP` | A path | Unset | The path to an existing yaml-cpp source folder to build yaml-cpp from. Note that libloot relies on [a fork of yaml-cpp](https://github.com/loot/yaml-cpp) to support YAML merge keys in metadata files. If unset, CMake will download the source from GitHub when the libloot build is configured. You may also need to set `CMAKE_PREFIX_PATH` if CMake cannot find Boost.