mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-12-12 03:38:24 -05:00
11 lines
296 B
CMake
11 lines
296 B
CMake
|
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()
|