From 18ba3d9a353b7c59903d8ef712d66ea7f3ee76f1 Mon Sep 17 00:00:00 2001 From: Vladimir Davidovich Date: Tue, 19 May 2020 18:43:35 +0300 Subject: [PATCH] allow cross compiling for Windows Store, UWP, etc. (#3330) for more info see https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#cross-compiling-for-windows-store --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d0eb8b54..73248f234 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") set(SPIRV_TIMER_ENABLED ${SPIRV_ALLOW_TIMERS}) elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Emscripten") add_definitions(-DSPIRV_EMSCRIPTEN) -elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") +elseif("${CMAKE_SYSTEM_NAME}" MATCHES "Windows") add_definitions(-DSPIRV_WINDOWS) elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "CYGWIN") add_definitions(-DSPIRV_WINDOWS)