mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
Merge pull request #864 from codicodi/fix-toolchain
[vcpkg.cmake] handle alias executable targets
This commit is contained in:
commit
80e1a39a5d
@ -85,7 +85,8 @@ if(NOT VCPKG_TOOLCHAIN)
|
||||
function(add_executable name)
|
||||
_add_executable(${ARGV})
|
||||
list(FIND ARGV "IMPORTED" IMPORTED_IDX)
|
||||
if(IMPORTED_IDX EQUAL -1)
|
||||
list(FIND ARGV "ALIAS" ALIAS_IDX)
|
||||
if(IMPORTED_IDX EQUAL -1 AND ALIAS_IDX EQUAL -1)
|
||||
if(VCPKG_APPLOCAL_DEPS)
|
||||
add_custom_command(TARGET ${name} POST_BUILD
|
||||
COMMAND powershell -noprofile -executionpolicy UnRestricted -file ${_VCPKG_TOOLCHAIN_DIR}/msbuild/applocal.ps1
|
||||
|
Loading…
x
Reference in New Issue
Block a user