Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake should always test minimum SDL3 version #520

Open
madebr opened this issue Feb 11, 2025 · 0 comments
Open

CMake should always test minimum SDL3 version #520

madebr opened this issue Feb 11, 2025 · 0 comments

Comments

@madebr
Copy link
Contributor

madebr commented Feb 11, 2025

The SDL3 version is currently not tested when using SDL3 and SDL3_image as git submodules.

The following should be disallowed (because SDL3 is too old):

cmake_minimum_required(VERSION 3.20)
project(mygame C)

add_subdirectory(SDL3-3.1.6 EXCLUDE_FROM_ALL)
add_subdirectory(SDL3_image-3.2.4 EXCLUDE_FROM_ALL)

add_executable(mygame WIN32 main.c)
target_link_libraries(mygame  PRIVATE SDL3_image::SDL3_image SDL3::SDL3)

(this also applies to SDL3_mixer, SDL3_ttf and SDL3_net)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant