mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Remove ability to use find_package for yaml-cpp dependency
If the build system happens to have yaml-cpp installed as a system package it would link against that, causing non-obvious errors when libloot is then unable to resolve masterlist merge keys. As such, make it so that can't accidentally happen. Also document an alternative approach for getting FetchContent to use existing sources instead of trying to download them, which is relevant for building LOOT's Flatpak.
This commit is contained in:
+1
-2
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user