Skip to content

Commit

Permalink
exclude MMAI mod if ENABLE_MMAI is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
smanolloff committed Oct 16, 2024
1 parent 62bd1a5 commit e19df1e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ else()
option(ENABLE_SINGLE_APP_BUILD "Builds client and launcher as single executable" OFF)
option(ENABLE_TEST "Enable compilation of unit tests" OFF)
option(ENABLE_LOBBY "Enable compilation of lobby server" OFF)
option(ENABLE_MMAI "Enable compilation of ML-powered AI" OFF)
option(ENABLE_MMAI "Enable compilation of MMAI AI library" OFF)
endif()

# ERM depends on LUA implicitly
Expand Down Expand Up @@ -717,7 +717,11 @@ if(ANDROID)
else()
install(DIRECTORY config DESTINATION ${DATA_DIR})
if (ENABLE_CLIENT OR ENABLE_SERVER)
install(DIRECTORY Mods DESTINATION ${DATA_DIR})
if (ENABLE_MMAI)
install(DIRECTORY Mods DESTINATION ${DATA_DIR})
else()
install(DIRECTORY Mods DESTINATION ${DATA_DIR} PATTERN "MMAI" EXCLUDE)
endif()
endif()
endif()
if(ENABLE_LUA)
Expand Down

0 comments on commit e19df1e

Please sign in to comment.