diff options
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()
|