[vcpkg-toolchain] When using the Vcpkg toolchain, do not also include the user-wide property sheet.

This commit is contained in:
Robert Schumacher 2017-05-01 23:12:43 -07:00
parent 20657a29ca
commit 9c4099545b

View File

@ -115,6 +115,7 @@ if(NOT VCPKG_TOOLCHAIN)
-OutVariable out
)
endif()
set_target_properties(${name} PROPERTIES VS_USER_PROPS do_not_import_user.props)
set_target_properties(${name} PROPERTIES VS_GLOBAL_VcpkgEnabled false)
endif()
endfunction()
@ -125,6 +126,7 @@ if(NOT VCPKG_TOOLCHAIN)
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_USER_PROPS do_not_import_user.props)
set_target_properties(${name} PROPERTIES VS_GLOBAL_VcpkgEnabled false)
endif()
endfunction()