aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/cmake/vcpkg_add_to_path.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/scripts/cmake/vcpkg_add_to_path.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/scripts/cmake/vcpkg_add_to_path.cmake')
-rw-r--r--vcpkg/scripts/cmake/vcpkg_add_to_path.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/vcpkg/scripts/cmake/vcpkg_add_to_path.cmake b/vcpkg/scripts/cmake/vcpkg_add_to_path.cmake
new file mode 100644
index 0000000..1ea11a6
--- /dev/null
+++ b/vcpkg/scripts/cmake/vcpkg_add_to_path.cmake
@@ -0,0 +1,10 @@
+function(vcpkg_add_to_path)
+ cmake_parse_arguments(PARSE_ARGV 0 "arg" "PREPEND" "" "")
+ if(arg_PREPEND)
+ set(operation PREPEND)
+ else()
+ set(operation APPEND)
+ endif()
+
+ vcpkg_host_path_list("${operation}" ENV{PATH} ${arg_UNPARSED_ARGUMENTS})
+endfunction()