[vcpkg] Only default target triplet to windows if on windows

This commit is contained in:
Robert Schumacher 2017-11-28 13:17:10 -08:00
parent b496f7df49
commit b4668e664a

View File

@ -54,7 +54,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR CMAKE_SYSTEM_NAME STREQUAL "Wind
set(_VCPKG_TARGET_TRIPLET_PLAT uwp) set(_VCPKG_TARGET_TRIPLET_PLAT uwp)
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
set(_VCPKG_TARGET_TRIPLET_PLAT linux) set(_VCPKG_TARGET_TRIPLET_PLAT linux)
else() elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
set(_VCPKG_TARGET_TRIPLET_PLAT windows) set(_VCPKG_TARGET_TRIPLET_PLAT windows)
endif() endif()