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()