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)