From 81b5b9afa3a396e848391e2081d5c677678aba8e Mon Sep 17 00:00:00 2001 From: Willy Scheibel Date: Mon, 26 Feb 2024 10:07:17 +0100 Subject: [PATCH] Fix cmake setup --- source/examples/cubescape-gtk4/CMakeLists.txt | 2 +- source/examples/cubescape-sdl/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/examples/cubescape-gtk4/CMakeLists.txt b/source/examples/cubescape-gtk4/CMakeLists.txt index 6e8f9e9a..951fc71a 100644 --- a/source/examples/cubescape-gtk4/CMakeLists.txt +++ b/source/examples/cubescape-gtk4/CMakeLists.txt @@ -3,7 +3,7 @@ # External dependencies # -find_package(GTK4 REQUIRED) +find_package(GTK4 QUIET) find_package(cpplocate QUIET) diff --git a/source/examples/cubescape-sdl/CMakeLists.txt b/source/examples/cubescape-sdl/CMakeLists.txt index 55e43055..fe11a45b 100644 --- a/source/examples/cubescape-sdl/CMakeLists.txt +++ b/source/examples/cubescape-sdl/CMakeLists.txt @@ -15,7 +15,7 @@ find_package(cpplocate QUIET) set(target cubescape-sdl) # Exit here if required dependencies are not met -if (NOT SDL2_FOUND) +if (NOT TARGET SDL2::SDL2) message("Example ${target} skipped: SDL2 not found") return() endif()