Add fmt dependency to top-level element-game project, since it's also used there
All checks were successful
buildbot/elemental-game-linux-builder Build done.
buildbot/elemental-game-macos-builder Build done.

This commit is contained in:
S David 2024-06-02 15:57:33 -04:00
parent 9a91f6eb4a
commit eb9e2bcccc
2 changed files with 11 additions and 1 deletions

View File

@ -92,6 +92,16 @@ endif()
# "USE_CCACHE ON"
# "USE_MOLD ON"
#)
CPMFindPackage(
NAME fmt
URL https://github.com/fmtlib/fmt/archive/refs/tags/10.2.1.zip
URL_HASH SHA256=d368f9c39a33a3aef800f5be372ec1df1c12ad57ada1f60adc62f24c0e348469
)
CPMAddPackage(NAME tomlplusplus
URL https://github.com/marzer/tomlplusplus/archive/refs/tags/v3.4.0.zip
URL_HASH SHA256=ad2a4cd786e25305d802e7490ea65a2531195e5834bf6b4fa5a323421fd81f9b
)
find_package(Qt6 COMPONENTS
Core REQUIRED

View File

@ -33,7 +33,7 @@ class JsonConfigFile : public FileResource {
void write();
template<typename TData>
[[nodiscard]] auto get() const -> const TData&
[[nodiscard]] auto get() const -> TData
{
return config_json.get<TData>();
}