aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2016-12-02 11:56:22 -0800
committerGitHub <noreply@github.com>2016-12-02 11:56:22 -0800
commitf62072584299970964d600163cd0d065b5806221 (patch)
tree2c7372d004ce26278ae9665e670cebe2565adc51 /scripts
parent3b9e77a47712e5cd94f3a8edb90ee4f31c196ebb (diff)
parentf874d15ecabd7e7331e3da6bf03d7573fe48c6a4 (diff)
downloadvcpkg-f62072584299970964d600163cd0d065b5806221.tar.gz
vcpkg-f62072584299970964d600163cd0d065b5806221.zip
Merge pull request #381 from barcharcraz/fix_alias
fixed vcpkg trying to set properties on INTERFACE and ALIAS targets
Diffstat (limited to 'scripts')
-rw-r--r--scripts/buildsystems/vcpkg.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake
index 44db05a22..089d28db8 100644
--- a/scripts/buildsystems/vcpkg.cmake
+++ b/scripts/buildsystems/vcpkg.cmake
@@ -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()