1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

install scripts directory only when scripting modules are enabled

This commit is contained in:
Andrey Filipenkov 2022-09-22 17:16:24 +03:00
parent b8eef4ce35
commit 5f0a8419d3

View File

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