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_add_to_path.cmake | |
Diffstat (limited to 'vcpkg/scripts/cmake/vcpkg_add_to_path.cmake')
| -rw-r--r-- | vcpkg/scripts/cmake/vcpkg_add_to_path.cmake | 10 |
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()
|