mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-27 21:20:21 +00: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…
Reference in New Issue
Block a user