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()
|
||||
|
||||
if(ENABLE_SCRIPTING)
|
||||
add_subdirectory(src/script)
|
||||
list(APPEND ENABLES SCRIPTING)
|
||||
if(NOT USE_LUA VERSION_LESS 5.1)
|
||||
find_feature(USE_LUA "Lua" ${USE_LUA})
|
||||
|
@ -756,6 +755,7 @@ if(ENABLE_SCRIPTING)
|
|||
include_directories(AFTER ${PYTHON_INCLUDE_DIRS})
|
||||
list(APPEND ENABLES PYTHON)
|
||||
endif()
|
||||
add_subdirectory(src/script)
|
||||
endif()
|
||||
|
||||
add_subdirectory(src/arm)
|
||||
|
|
Loading…
Reference in New Issue