diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index be7ebe42f2..e139b9bf06 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -48,9 +48,9 @@ if(BUILD_PLAYERBOTS) add_subdirectory(${playerbots_SOURCE_DIR}) else() - # if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/modules/playerbots) - # file(REMOVE_RECURSE ${CMAKE_CURRENT_SOURCE_DIR}/modules/playerbots) - # endif() + if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/modules/playerbots) + file(REMOVE_RECURSE ${CMAKE_CURRENT_SOURCE_DIR}/modules/playerbots) + endif() endif() if(BUILD_GAME_SERVER) diff --git a/src/mangosd/CMakeLists.txt b/src/mangosd/CMakeLists.txt index 89efe1756a..1cbfe1a050 100644 --- a/src/mangosd/CMakeLists.txt +++ b/src/mangosd/CMakeLists.txt @@ -97,7 +97,7 @@ if(WIN32) if(BUILD_PLAYERBOTS) add_custom_command(TARGET ${EXECUTABLE_NAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_if_different \"${CMAKE_SOURCE_DIR}/src/modules/PlayerBots/playerbot/aiplayerbot.conf.dist.in\" \"$/playerbot.conf.dist\") + COMMAND ${CMAKE_COMMAND} -E copy_if_different \"${CMAKE_SOURCE_DIR}/src/modules/playerbots/playerbot/aiplayerbot.conf.dist.in\" \"$/aiplayerbot.conf.dist\") endif() if(BUILD_AHBOT)