[opengl] If-def on Windows vs other

This commit is contained in:
Alexander Karatarakis 2018-03-22 14:05:23 -07:00 committed by Robert Schumacher
parent 8d8e676711
commit a6866d477d

View File

@ -1,5 +1,6 @@
include(vcpkg_common_functions)
if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
vcpkg_get_program_files_32_bit(PROGRAM_FILES_32_BIT)
vcpkg_get_windows_sdk(WINDOWS_SDK)
@ -45,3 +46,6 @@ if (WINDOWS_SDK MATCHES "10.")
elseif(WINDOWS_SDK MATCHES "8.")
file(WRITE ${CURRENT_PACKAGES_DIR}/share/opengl/copyright "See https://developer.microsoft.com/windows/downloads/windows-8-1-sdk for the Windows 8.1 SDK license")
endif()
else()
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
endif()