Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/cmake/vcpkg_from_github.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ function(vcpkg_from_github)
set(VCPKG_USE_HEAD_VERSION OFF)
endif()

if(VCPKG_MANIFEST_MODE AND NOT VCPKG_USE_HEAD_VERSION AND NOT DEFINED _vdud_REF)
message(STATUS "Package specifies HEAD_REF but not REF, and --head was not passed to vcpkg. Manifest mode is active, so HEAD_REF is being used.")
set(VCPKG_USE_HEAD_VERSION ON)
endif()

# Handle --no-head scenarios
if(NOT VCPKG_USE_HEAD_VERSION)
if(NOT _vdud_REF)
Expand Down