aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/vcpkg-cmake/vcpkg_cmake_install.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/vcpkg-cmake/vcpkg_cmake_install.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/vcpkg-cmake/vcpkg_cmake_install.cmake')
-rw-r--r--vcpkg/ports/vcpkg-cmake/vcpkg_cmake_install.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/vcpkg/ports/vcpkg-cmake/vcpkg_cmake_install.cmake b/vcpkg/ports/vcpkg-cmake/vcpkg_cmake_install.cmake
new file mode 100644
index 0000000..2bd8b4e
--- /dev/null
+++ b/vcpkg/ports/vcpkg-cmake/vcpkg_cmake_install.cmake
@@ -0,0 +1,21 @@
+include_guard(GLOBAL)
+
+function(vcpkg_cmake_install)
+ cmake_parse_arguments(PARSE_ARGV 0 "arg" "DISABLE_PARALLEL;ADD_BIN_TO_PATH" "" "")
+ if(DEFINED arg_UNPARSED_ARGUMENTS)
+ message(FATAL_ERROR "vcpkg_cmake_install was passed extra arguments: ${arg_UNPARSED_ARGUMENTS}")
+ endif()
+
+ set(args)
+ foreach(arg IN ITEMS DISABLE_PARALLEL ADD_BIN_TO_PATH)
+ if(arg_${arg})
+ list(APPEND args "${arg}")
+ endif()
+ endforeach()
+
+ vcpkg_cmake_build(
+ ${args}
+ LOGFILE_BASE install
+ TARGET install
+ )
+endfunction()