Skip to content

Commit

Permalink
-Config build fix: Pick the correct config source dir for each expans…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
mostlikely4r committed Nov 8, 2024
1 parent 9f500cd commit a1b31bd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,15 @@ target_include_directories(${LIBRARY_NAME}
)

# Install config files
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/playerbot/aiplayerbot.conf.dist.in ${CMAKE_CURRENT_BINARY_DIR}/aiplayerbot.conf.dist)
if ( ${CMAKE_PROJECT_NAME} MATCHES "Classic")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/playerbot/aiplayerbot.conf.dist.in ${CMAKE_CURRENT_BINARY_DIR}/aiplayerbot.conf.dist)
endif()
if ( ${CMAKE_PROJECT_NAME} MATCHES "TBC")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/playerbot/aiplayerbot.conf.dist.in.tbc ${CMAKE_CURRENT_BINARY_DIR}/aiplayerbot.conf.dist)
endif()
if ( ${CMAKE_PROJECT_NAME} MATCHES "WoTLK")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/playerbot/aiplayerbot.conf.dist.in.wotlk ${CMAKE_CURRENT_BINARY_DIR}/aiplayerbot.conf.dist)
endif()
if (NOT CONF_INSTALL_DIR)
set(CONF_INSTALL_DIR ${CONF_DIR})
endif()
Expand Down

0 comments on commit a1b31bd

Please sign in to comment.