[olympic/turbine] Fix some broken CMake vars

This commit is contained in:
Gary Talent 2023-12-23 15:30:54 -06:00
parent 95dcd6bee7
commit c90a8449be

View File

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