diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/gz-cmake/lock-dependencies.diff | |
Diffstat (limited to 'vcpkg/ports/gz-cmake/lock-dependencies.diff')
| -rw-r--r-- | vcpkg/ports/gz-cmake/lock-dependencies.diff | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vcpkg/ports/gz-cmake/lock-dependencies.diff b/vcpkg/ports/gz-cmake/lock-dependencies.diff new file mode 100644 index 0000000..1c6c4cd --- /dev/null +++ b/vcpkg/ports/gz-cmake/lock-dependencies.diff @@ -0,0 +1,18 @@ +diff --git a/cmake/GzConfigureBuild.cmake b/cmake/GzConfigureBuild.cmake +index 3122c15..f64d695 100644 +--- a/cmake/GzConfigureBuild.cmake ++++ b/cmake/GzConfigureBuild.cmake +@@ -265,6 +265,13 @@ macro(gz_configure_build) + gz_string_append(skip_msg "by user request") + elseif(${component}_MISSING_DEPS) + gz_string_append(skip_msg "because the following packages are missing: ${${component}_MISSING_DEPS}") ++ if(NOT DEFINED GZ_LOCK_DEPENDENCIES OR "${GZ_LOCK_DEPENDENCIES}") ++ message(SEND_ERROR "Vcpkg ports must lock dependencies." ++ " To enable ${component}, provide missing dependencies." ++ " To disable ${component}, pass -DSKIP_${component}=true." ++ " To disable this check, pass -DGZ_LOCK_DEPENDENCIES=OFF." ++ ) ++ endif() + endif() + + message(STATUS "${skip_msg}") |