Add support for vcpkg (#3742)

This commit is contained in:
Seth Flynn 2025-07-09 06:50:41 -04:00 committed by GitHub
commit af73cfa20f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 66 additions and 1 deletions

View file

@ -348,6 +348,14 @@ endif()
if(NOT Launcher_FORCE_BUNDLED_LIBS)
# Find toml++
find_package(tomlplusplus 3.2.0 QUIET)
# Fallback to pkg-config (if available) if CMake files aren't found
if(NOT tomlplusplus_FOUND)
find_package(PkgConfig)
if(PkgConfig_FOUND)
pkg_check_modules(tomlplusplus IMPORTED_TARGET tomlplusplus>=3.2.0)
endif()
endif()
# Find cmark
find_package(cmark QUIET)