From 94e033fd80c5ae29538d8b6ddc088e5bc6dc3f70 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Fri, 25 Jun 2021 16:33:24 +0000 Subject: [PATCH] r2t2 : do not build if SDL2 is not supported --- examples/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 51e9377..221486d 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -84,11 +84,11 @@ else() add_subdirectory(ggwave-to-file) endif() -if (UNIX AND NOT APPLE) - add_subdirectory(r2t2) -endif() - if (GGWAVE_SUPPORT_SDL2) + if (UNIX AND NOT APPLE) + add_subdirectory(r2t2) + endif() + if (EMSCRIPTEN) # emscripten sdl2 examples