[Build] move core definition into cmake

This commit is contained in:
Antz 2015-12-01 22:24:16 +00:00 committed by Antz
parent eb7f89e197
commit 3a5ab0b766
2 changed files with 3 additions and 2 deletions

View File

@ -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}")

View File

@ -31,7 +31,6 @@
#ifndef MANGOS
#define MANGOS
#endif /* MANGOS */
#define CLASSIC
enum Gender
{