浏览代码

install scripts directory only when scripting modules are enabled

Andrey Filipenkov 3 年之前
父节点
当前提交
5f0a8419d3
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      CMakeLists.txt

+ 3 - 1
CMakeLists.txt

@@ -451,8 +451,10 @@ endif()
 #######################################
 
 install(DIRECTORY config DESTINATION ${DATA_DIR})
-install(DIRECTORY scripts DESTINATION ${DATA_DIR})
 install(DIRECTORY Mods DESTINATION ${DATA_DIR})
+if(ENABLE_LUA)
+	install(DIRECTORY scripts DESTINATION ${DATA_DIR})
+endif()
 
 # that script is useless for Windows and iOS
 if(NOT WIN32 AND NOT APPLE_IOS)