From 3a5ab0b766a673a6e95be45484d324d1bb64cb78 Mon Sep 17 00:00:00 2001 From: Antz Date: Tue, 1 Dec 2015 22:24:16 +0000 Subject: [PATCH] [Build] move core definition into cmake --- CMakeLists.txt | 4 +++- src/game/Server/SharedDefines.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ca4bf244..923f8d68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ project(MaNGOS) set(MANGOS_VERSION 0.21) set(MANGOS_EXP "CLASSIC") - +add_definitions(-DCLASSIC) # CMake policies cmake_minimum_required(VERSION 2.8) # Until CMake 3.0 is the standard @@ -142,6 +142,8 @@ else() set(GIT_REVISION "Git not found") endif() +set(DEFINITIONS ${DEFINITIONS} CLASSIC) + message(STATUS "MaNGOS-Core revision : ${GIT_REVISION}") message(STATUS "Install server to : ${CMAKE_INSTALL_PREFIX}") message(STATUS "Install configs to : ${CONF_INSTALL_DIR}") diff --git a/src/game/Server/SharedDefines.h b/src/game/Server/SharedDefines.h index 984ab065..9def4402 100644 --- a/src/game/Server/SharedDefines.h +++ b/src/game/Server/SharedDefines.h @@ -31,7 +31,6 @@ #ifndef MANGOS #define MANGOS #endif /* MANGOS */ -#define CLASSIC enum Gender {