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/scripts/cmake/vcpkg_extract_source_archive_ex.cmake | |
Diffstat (limited to 'vcpkg/scripts/cmake/vcpkg_extract_source_archive_ex.cmake')
| -rw-r--r-- | vcpkg/scripts/cmake/vcpkg_extract_source_archive_ex.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vcpkg/scripts/cmake/vcpkg_extract_source_archive_ex.cmake b/vcpkg/scripts/cmake/vcpkg_extract_source_archive_ex.cmake new file mode 100644 index 0000000..b279708 --- /dev/null +++ b/vcpkg/scripts/cmake/vcpkg_extract_source_archive_ex.cmake @@ -0,0 +1,11 @@ +function(vcpkg_extract_source_archive_ex)
+ # OUT_SOURCE_PATH is an out-parameter so we need to parse it
+ cmake_parse_arguments(PARSE_ARGV 0 "arg" "" "OUT_SOURCE_PATH" "")
+ if(NOT DEFINED arg_OUT_SOURCE_PATH)
+ message(FATAL_ERROR "OUT_SOURCE_PATH must be specified")
+ endif()
+
+ vcpkg_extract_source_archive(source_path ${arg_UNPARSED_ARGUMENTS} Z_ALLOW_OLD_PARAMETER_NAMES)
+
+ set("${arg_OUT_SOURCE_PATH}" "${source_path}" PARENT_SCOPE)
+endfunction()
|