From 3261799d923ed9d1572191a45c706b00310804af Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sun, 29 May 2022 14:05:48 -0700 Subject: [PATCH] CMake: Fix build when Lua fails to detect --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 48561819c..3afbaadc1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)