diff --git a/src/scriptdev2/CMakeLists.txt b/src/scriptdev2/CMakeLists.txt index c754226febc..6767c3b5de1 100644 --- a/src/scriptdev2/CMakeLists.txt +++ b/src/scriptdev2/CMakeLists.txt @@ -44,6 +44,7 @@ include_directories( ${CMAKE_SOURCE_DIR}/src/game ${CMAKE_SOURCE_DIR}/dep/include ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/src/shared ${ACE_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR} ) @@ -66,7 +67,8 @@ if(WIN32) ) endif() -add_dependencies(mangosscript revision.h) +add_dependencies(mangosscript mangosd) + if(NOT ACE_USE_EXTERNAL) add_dependencies(mangosscript ACE_Project) # add_dependencies(mangosscript ace) diff --git a/src/scriptdev2/system/MangosdRev.cpp b/src/scriptdev2/system/MangosdRev.cpp deleted file mode 100644 index a9dcbf232f4..00000000000 --- a/src/scriptdev2/system/MangosdRev.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/* This file is part of the ScriptDev2 Project. See AUTHORS file for Copyright information -* This program is free software licensed under GPL version 2 -* Please see the included DOCS/LICENSE.TXT for more information */ - -#include "../../../shared/revision_nr.h" - -#ifdef WIN32 -# define MANGOS_DLL_EXPORT extern "C" __declspec(dllexport) -#elif defined( __GNUC__ ) -# define MANGOS_DLL_EXPORT extern "C" -#else -# define MANGOS_DLL_EXPORT extern "C" export -#endif - -MANGOS_DLL_EXPORT -char const* GetMangosRevStr() -{ - return REVISION_NR; -}