mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Override the vcpkg/scripts/detect_compiler behavior of always pulling
$CC and $CXX at the time that vcpkg install is determined to need called
by forcing $ENV{CXX} and $ENV{CC} to our CMake-determined compiler.
This prevents strange behavior such as running the following:
./Meta/ladybird.sh run
make changes...
ninja -C Build/ladybird
Where the second build step would be run without CC or CXX set in the
environment, causing a total cache miss from vcpkg and a full rebuild.
It also helps prevent full rebuilds when an IDE passes a slightly
different compiler to the build step than ladybird.sh.
6 lines
150 B
CMake
6 lines
150 B
CMake
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
|
|
set(VCPKG_TARGET_ARCHITECTURE arm64)
|
|
set(VCPKG_CRT_LINKAGE dynamic)
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/base.cmake)
|