[olympic/turbine] Fix some broken CMake vars
This commit is contained in:
parent
95dcd6bee7
commit
c90a8449be
@ -1,10 +1,15 @@
|
|||||||
add_library(Turbine)
|
add_library(Turbine)
|
||||||
|
|
||||||
set(TURBINE_BACKEND_GBA ${TURBINE_BUILD_TYPE} STREQUAL "GBA")
|
if(TURBINE_BUILD_TYPE STREQUAL "GBA")
|
||||||
set(TURBINE_BACKEND_GLFW NOT ${TURBINE_BACKEND_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)
|
add_subdirectory(gba)
|
||||||
if(${TURBINE_BACKEND_GLFW})
|
if(TURBINE_BACKEND_GLFW)
|
||||||
add_subdirectory(glfw)
|
add_subdirectory(glfw)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user