From 24539a8601182c901ae829783e6a5051bf4ea020 Mon Sep 17 00:00:00 2001 From: Richard Ward Date: Fri, 19 Dec 2025 01:16:19 +0000 Subject: [PATCH] try to fix build --- CMakeLists.txt | 1 + CMakeUserPresets.json | 9 +++++++++ README.md | 3 ++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 CMakeUserPresets.json diff --git a/CMakeLists.txt b/CMakeLists.txt index cf586e8..46d5552 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ endif() if(BUILD_SDL3_APP) find_package(Vulkan REQUIRED) + find_package(SDL3 CONFIG REQUIRED) endif() find_package(lua CONFIG REQUIRED) diff --git a/CMakeUserPresets.json b/CMakeUserPresets.json new file mode 100644 index 0000000..945b382 --- /dev/null +++ b/CMakeUserPresets.json @@ -0,0 +1,9 @@ +{ + "version": 4, + "vendor": { + "conan": {} + }, + "include": [ + "build/CMakePresets.json" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 06a9349..fba8fa5 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ A minimal SDL3 + Vulkan spinning cube demo. 1. Install or update [Conan 2.x](https://docs.conan.io/en/latest/installation.html) and run ``` - conan install . --install-folder build --build=missing + conan profile detect + conan install . -of build -b missing -s compiler=msvc -s compiler.version=194 -s compiler.cppstd=17 -c tools.cmake.cmaketoolchain:generator="Visual Studio 17 2022" ``` so that Conan brings in `lua`, SDL3, and the Vulkan loader + headers. 2. Configure the project with CMake using the generated Conan toolchain: