mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-12-24 00:42:46 +00:00
UWP: Move cmake system flags before project def
This commit is contained in:
parent
9d6b890615
commit
87c180ba84
1 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
cmake_minimum_required(VERSION 3.14)
|
cmake_minimum_required(VERSION 3.14)
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
|
|
||||||
|
# Setup UWP platform
|
||||||
|
set(CMAKE_SYSTEM_NAME WindowsStore)
|
||||||
|
set(CMAKE_SYSTEM_VERSION 10.0.19041.0)
|
||||||
|
|
||||||
# Define project
|
# Define project
|
||||||
project(mbhaxe-uwp LANGUAGES CXX)
|
project(mbhaxe-uwp LANGUAGES CXX)
|
||||||
set_directory_properties(PROPERTIES VS_STARTUP_PROJECT ${PROJECT_NAME})
|
set_directory_properties(PROPERTIES VS_STARTUP_PROJECT ${PROJECT_NAME})
|
||||||
|
|
@ -12,10 +16,6 @@ FetchContent_Declare(UwpLibs
|
||||||
)
|
)
|
||||||
FetchContent_MakeAvailable(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 17)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue