mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 03:33:02 +08:00
Merge pull request #140 from Morten242/master
Use -noprofile to avoid loading powershell profiles
This commit is contained in:
commit
43d9bc0520
@ -43,7 +43,7 @@ if(NOT VCPKG_TOOLCHAIN)
|
||||
function(add_executable name)
|
||||
_add_executable(${ARGV})
|
||||
add_custom_command(TARGET ${name} POST_BUILD
|
||||
COMMAND powershell -executionpolicy UnRestricted -file ${_VCPKG_TOOLCHAIN_DIR}/msbuild/applocal.ps1
|
||||
COMMAND powershell -noprofile -executionpolicy UnRestricted -file ${_VCPKG_TOOLCHAIN_DIR}/msbuild/applocal.ps1
|
||||
-targetBinary $<TARGET_FILE:${name}>
|
||||
-installedDir "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}$<$<CONFIG:Debug>:/debug>/bin"
|
||||
-OutVariable out
|
||||
|
Loading…
Reference in New Issue
Block a user