Reduce the usual extra arguments error to a warning by default because liblas trips over it.

This commit is contained in:
Billy Robert O'Neal III 2026-07-27 11:45:56 -07:00
parent 5397c5c9f1
commit fedb33341b
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -144,7 +144,9 @@ function(vcpkg_download_distfile out_var)
"URLS;HEADERS"
)
if(DEFINED arg_UNPARSED_ARGUMENTS)
message(FATAL_ERROR "vcpkg_download_distfile was passed extra arguments: ${arg_UNPARSED_ARGUMENTS}")
# backcompat needed to be preserved for
# https://github.com/microsoft/vcpkg/blob/68b3d3404d0bc6f2a2287f64ed5f6aa777e70d56/ports/liblas/portfile.cmake#L9
message("${Z_VCPKG_BACKCOMPAT_MESSAGE_LEVEL}" "vcpkg_download_distfile was passed extra arguments: ${arg_UNPARSED_ARGUMENTS}")
endif()
if(arg_SILENT_EXIT)
message(WARNING "SILENT_EXIT no longer has any effect. To resolve this warning, remove SILENT_EXIT.")