Core/Buildsystem: Resolved quoting problem that caused gcc to spam warnings. Patch by click.
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ project(TrinityCore)
|
|||||||
|
|
||||||
# CMake policies (can not be handled elsewhere)
|
# CMake policies (can not be handled elsewhere)
|
||||||
cmake_minimum_required(VERSION 2.6)
|
cmake_minimum_required(VERSION 2.6)
|
||||||
cmake_policy(SET CMP0005 NEW)
|
cmake_policy(SET CMP0005 OLD)
|
||||||
|
|
||||||
# Set RPATH-handing (CMake parameters)
|
# Set RPATH-handing (CMake parameters)
|
||||||
set(CMAKE_SKIP_BUILD_RPATH 0)
|
set(CMAKE_SKIP_BUILD_RPATH 0)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Set build-directive (used in core to tell which buildtype we used)
|
# Set build-directive (used in core to tell which buildtype we used)
|
||||||
add_definitions(-D_BUILD_DIRECTIVE="${CMAKE_BUILD_TYPE}")
|
add_definitions(-D_BUILD_DIRECTIVE='"${CMAKE_BUILD_TYPE}"')
|
||||||
|
|
||||||
add_definitions(-fno-delete-null-pointer-checks)
|
add_definitions(-fno-delete-null-pointer-checks)
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set build-directive (used in core to tell which buildtype we used)
|
# Set build-directive (used in core to tell which buildtype we used)
|
||||||
add_definitions(-D_BUILD_DIRECTIVE="$(ConfigurationName)")
|
add_definitions(-D_BUILD_DIRECTIVE=\\"$(CONFIGURATION)\\")
|
||||||
|
|
||||||
# multithreaded compiling on VS
|
# multithreaded compiling on VS
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ add_executable(authserver
|
|||||||
add_dependencies(authserver revision.h)
|
add_dependencies(authserver revision.h)
|
||||||
|
|
||||||
if( NOT WIN32 )
|
if( NOT WIN32 )
|
||||||
add_definitions(-D_TRINITY_REALM_CONFIG="${CONF_DIR}/authserver.conf")
|
add_definitions(-D_TRINITY_REALM_CONFIG='"${CONF_DIR}/authserver.conf"')
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( UNIX )
|
if( UNIX )
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
#include "revision.h"
|
#include "revision.h"
|
||||||
|
|
||||||
#define _PACKAGENAME "TrinityCore "
|
#define _PACKAGENAME "TrinityCore "
|
||||||
#define _CODENAME "LONG_COLD_WINTER"
|
|
||||||
|
|
||||||
#if TRINITY_ENDIAN == TRINITY_BIGENDIAN
|
#if TRINITY_ENDIAN == TRINITY_BIGENDIAN
|
||||||
# define _ENDIAN_STRING "big-endian"
|
# define _ENDIAN_STRING "big-endian"
|
||||||
@@ -35,12 +34,12 @@
|
|||||||
|
|
||||||
#if PLATFORM == PLATFORM_WINDOWS
|
#if PLATFORM == PLATFORM_WINDOWS
|
||||||
# ifdef _WIN64
|
# ifdef _WIN64
|
||||||
# define _FULLVERSION _PACKAGENAME "Rev: " _REVISION " " _BUILD_DIRECTIVE " Hash: " _HASH " (Win64," _ENDIAN_STRING ")"
|
# define _FULLVERSION _PACKAGENAME "Rev: " _REVISION " " _BUILD_DIRECTIVE " Hash: " _HASH " (Win64, " _ENDIAN_STRING ")"
|
||||||
# else
|
# else
|
||||||
# define _FULLVERSION _PACKAGENAME "Rev: " _REVISION " " _BUILD_DIRECTIVE " Hash: " _HASH " (Win32," _ENDIAN_STRING ")"
|
# define _FULLVERSION _PACKAGENAME "Rev: " _REVISION " " _BUILD_DIRECTIVE " Hash: " _HASH " (Win32, " _ENDIAN_STRING ")"
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# define _FULLVERSION _PACKAGENAME "Rev: " _REVISION " " _BUILD_DIRECTIVE " Hash: " _HASH " (Unix," _ENDIAN_STRING ")"
|
# define _FULLVERSION _PACKAGENAME "Rev: " _REVISION " " _BUILD_DIRECTIVE " Hash: " _HASH " (Unix, " _ENDIAN_STRING ")"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ set(worldserver_LINK_FLAGS "")
|
|||||||
add_executable(worldserver ${worldserver_SRCS})
|
add_executable(worldserver ${worldserver_SRCS})
|
||||||
|
|
||||||
if( NOT WIN32 )
|
if( NOT WIN32 )
|
||||||
add_definitions(-D_TRINITY_CORE_CONFIG="${CONF_DIR}/worldserver.conf")
|
add_definitions(-D_TRINITY_CORE_CONFIG='"${CONF_DIR}/worldserver.conf"')
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_dependencies(worldserver revision.h)
|
add_dependencies(worldserver revision.h)
|
||||||
|
|||||||
Reference in New Issue
Block a user