From c90a8449be5f49268748a7ae7ebfa86c83d51001 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 23 Dec 2023 15:30:54 -0600 Subject: [PATCH] [olympic/turbine] Fix some broken CMake vars --- src/olympic/turbine/src/CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/olympic/turbine/src/CMakeLists.txt b/src/olympic/turbine/src/CMakeLists.txt index 1e9a57c6..1e647f7d 100644 --- a/src/olympic/turbine/src/CMakeLists.txt +++ b/src/olympic/turbine/src/CMakeLists.txt @@ -1,10 +1,15 @@ add_library(Turbine) -set(TURBINE_BACKEND_GBA ${TURBINE_BUILD_TYPE} STREQUAL "GBA") -set(TURBINE_BACKEND_GLFW NOT ${TURBINE_BACKEND_GBA}) +if(TURBINE_BUILD_TYPE STREQUAL "GBA") + set(TURBINE_BACKEND_GBA TRUE) + set(TURBINE_BACKEND_GLFW FALSE) +else() + set(TURBINE_BACKEND_GBA FALSE) + set(TURBINE_BACKEND_GLFW TRUE) +endif() add_subdirectory(gba) -if(${TURBINE_BACKEND_GLFW}) +if(TURBINE_BACKEND_GLFW) add_subdirectory(glfw) endif()