CMake: Fix build when Lua fails to detect

This commit is contained in:
Vicki Pfau 2022-05-29 14:05:48 -07:00
parent 4358364830
commit 3261799d92
1 changed files with 1 additions and 1 deletions

View File

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