mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-12-05 01:10:12 +00:00
fix: Add back fallback to pkgconfig for tomlplusplus
fixes a regression in #4405 Signed-off-by: DioEgizio <83089242+DioEgizio@users.noreply.github.com>
This commit is contained in:
@@ -338,6 +338,12 @@ if(NOT LibArchive_FOUND)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(tomlplusplus 3.2.0 REQUIRED)
|
find_package(tomlplusplus 3.2.0 REQUIRED)
|
||||||
|
# fallback to pkgconfig, important especially as many distros package toml++ built with meson
|
||||||
|
if(NOT tomlplusplus_FOUND)
|
||||||
|
find_package(PkgConfig REQUIRED)
|
||||||
|
pkg_check_modules(tomlplusplus REQUIRED IMPORTED_TARGET tomlplusplus>=3.2.0)
|
||||||
|
endif()
|
||||||
|
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user