mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
fixed vcpkg trying to set properties on INTERFACE and ALIAS targets
This commit is contained in:
parent
25b6ef7a9d
commit
f874d15eca
@ -83,7 +83,9 @@ if(NOT VCPKG_TOOLCHAIN)
|
||||
function(add_library name)
|
||||
_add_library(${ARGV})
|
||||
list(FIND ARGV "IMPORTED" IMPORTED_IDX)
|
||||
if(IMPORTED_IDX EQUAL -1)
|
||||
list(FIND ARGV "INTERFACE" INTERFACE_IDX)
|
||||
list(FIND ARGV "ALIAS" ALIAS_IDX)
|
||||
if(IMPORTED_IDX EQUAL -1 AND INTERFACE_IDX EQUAL -1 AND ALIAS_IDX EQUAL -1)
|
||||
set_target_properties(${name} PROPERTIES VS_GLOBAL_VcpkgEnabled false)
|
||||
endif()
|
||||
endfunction()
|
||||
|
Loading…
x
Reference in New Issue
Block a user