Enhance CMake configuration and update dependencies

- Updated CMakeLists.txt to set policies for older submodules, improving compatibility with various CMake versions.
- Modified vcpkg.json to change the SDL2 dependency to a core variant and updated the builtin baseline to the latest version, ensuring better package management.
- Improved file dialog functionality in file_dialog.cc by adding conditional compilation for NFD support, providing fallback behavior when NFD is unavailable.
This commit is contained in:
scawful
2025-09-25 10:21:57 -04:00
parent 350d26ceb8
commit 189587d51e
3 changed files with 22 additions and 3 deletions

View File

@@ -1,6 +1,14 @@
# Yet Another Zelda3 Editor
# by scawful
cmake_minimum_required(VERSION 3.16)
# Set policy for older submodules
if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()
if(POLICY CMP0135)
cmake_policy(SET CMP0135 NEW)
endif()
project(yaze VERSION 0.3.0
DESCRIPTION "Yet Another Zelda3 Editor"
LANGUAGES CXX C)