CMake: Set VCPKG_MANIFEST_FEATURES as a cache variable

This reduces vcpkg churn when it thinks that the manifest features have
changed, but they haven't due to the Gui framework staying the same.
This commit is contained in:
Andrew Kaster
2026-04-19 19:16:42 -06:00
committed by Tim Flynn
parent 8cee6ba5a0
commit c16d5ebe0e
Notes: github-actions[bot] 2026-04-20 22:44:35 +00:00

View File

@@ -21,7 +21,7 @@ if (CMAKE_TOOLCHAIN_FILE MATCHES "vcpkg.cmake$")
set(CMAKE_PROJECT_ladybird_INCLUDE_BEFORE "Meta/CMake/vcpkg/generate_vcpkg_toolchain_variables.cmake")
if (LADYBIRD_GUI_FRAMEWORK STREQUAL "Qt" OR LADYBIRD_GUI_FRAMEWORK STREQUAL "Gtk")
string(TOLOWER "${LADYBIRD_GUI_FRAMEWORK}" framework_feature)
set(VCPKG_MANIFEST_FEATURES "${framework_feature}")
set(VCPKG_MANIFEST_FEATURES "${framework_feature}" CACHE STRING "" FORCE)
endif()
endif()