UWP: Move cmake system flags before project def

This commit is contained in:
= 2025-06-21 21:17:56 -04:00
parent 9d6b890615
commit 87c180ba84

View file

@ -1,6 +1,10 @@
cmake_minimum_required(VERSION 3.14)
include(FetchContent)
# Setup UWP platform
set(CMAKE_SYSTEM_NAME WindowsStore)
set(CMAKE_SYSTEM_VERSION 10.0.19041.0)
# Define project
project(mbhaxe-uwp LANGUAGES CXX)
set_directory_properties(PROPERTIES VS_STARTUP_PROJECT ${PROJECT_NAME})
@ -12,10 +16,6 @@ FetchContent_Declare(UwpLibs
)
FetchContent_MakeAvailable(UwpLibs)
# Setup UWP platform
set(CMAKE_SYSTEM_NAME WindowsStore) # Seems like you gotta specify these from cli for some reason
set(CMAKE_SYSTEM_VERSION 10.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)