mirror of https://github.com/mgba-emu/mgba.git
CMake: Fix build when Lua fails to detect
This commit is contained in:
parent
4358364830
commit
3261799d92
|
@ -736,7 +736,6 @@ if (USE_DISCORD_RPC)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_SCRIPTING)
|
if(ENABLE_SCRIPTING)
|
||||||
add_subdirectory(src/script)
|
|
||||||
list(APPEND ENABLES SCRIPTING)
|
list(APPEND ENABLES SCRIPTING)
|
||||||
if(NOT USE_LUA VERSION_LESS 5.1)
|
if(NOT USE_LUA VERSION_LESS 5.1)
|
||||||
find_feature(USE_LUA "Lua" ${USE_LUA})
|
find_feature(USE_LUA "Lua" ${USE_LUA})
|
||||||
|
@ -756,6 +755,7 @@ if(ENABLE_SCRIPTING)
|
||||||
include_directories(AFTER ${PYTHON_INCLUDE_DIRS})
|
include_directories(AFTER ${PYTHON_INCLUDE_DIRS})
|
||||||
list(APPEND ENABLES PYTHON)
|
list(APPEND ENABLES PYTHON)
|
||||||
endif()
|
endif()
|
||||||
|
add_subdirectory(src/script)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(src/arm)
|
add_subdirectory(src/arm)
|
||||||
|
|
Loading…
Reference in New Issue