File tree 6 files changed +8
-9
lines changed
6 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ project(TrinityCore)
13
13
14
14
# CMake policies (can not be handled elsewhere)
15
15
cmake_minimum_required (VERSION 2.6)
16
- cmake_policy (SET CMP0005 NEW )
16
+ cmake_policy (SET CMP0005 OLD )
17
17
18
18
# Set RPATH-handing (CMake parameters)
19
19
set (CMAKE_SKIP_BUILD_RPATH 0)
Original file line number Diff line number Diff line change 1
1
# Set build-directive (used in core to tell which buildtype we used)
2
- add_definitions (-D_BUILD_DIRECTIVE="${CMAKE_BUILD_TYPE} " )
2
+ add_definitions (-D_BUILD_DIRECTIVE=' "${CMAKE_BUILD_TYPE} " ' )
3
3
4
4
add_definitions (-fno-delete-null-pointer-checks)
5
5
Original file line number Diff line number Diff line change 28
28
endif ()
29
29
30
30
# Set build-directive (used in core to tell which buildtype we used)
31
- add_definitions (-D_BUILD_DIRECTIVE="$(ConfigurationName) " )
31
+ add_definitions (-D_BUILD_DIRECTIVE=\\ "$(CONFIGURATION )\\ ")
32
32
33
33
# multithreaded compiling on VS
34
34
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP" )
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ add_executable(authserver
71
71
add_dependencies (authserver revision.h)
72
72
73
73
if ( NOT WIN32 )
74
- add_definitions (-D_TRINITY_REALM_CONFIG="${CONF_DIR} /authserver.conf" )
74
+ add_definitions (-D_TRINITY_REALM_CONFIG=' "${CONF_DIR} /authserver.conf" ' )
75
75
endif ()
76
76
77
77
if ( UNIX )
Original file line number Diff line number Diff line change 25
25
#include "revision.h"
26
26
27
27
#define _PACKAGENAME "TrinityCore "
28
- #define _CODENAME "LONG_COLD_WINTER"
29
28
30
29
#if TRINITY_ENDIAN == TRINITY_BIGENDIAN
31
30
# define _ENDIAN_STRING "big-endian"
35
34
36
35
#if PLATFORM == PLATFORM_WINDOWS
37
36
# ifdef _WIN64
38
- # define _FULLVERSION _PACKAGENAME "Rev: " _REVISION " " _BUILD_DIRECTIVE " Hash: " _HASH " (Win64," _ENDIAN_STRING ")"
37
+ # define _FULLVERSION _PACKAGENAME "Rev: " _REVISION " " _BUILD_DIRECTIVE " Hash: " _HASH " (Win64, " _ENDIAN_STRING ")"
39
38
# else
40
- # define _FULLVERSION _PACKAGENAME "Rev: " _REVISION " " _BUILD_DIRECTIVE " Hash: " _HASH " (Win32," _ENDIAN_STRING ")"
39
+ # define _FULLVERSION _PACKAGENAME "Rev: " _REVISION " " _BUILD_DIRECTIVE " Hash: " _HASH " (Win32, " _ENDIAN_STRING ")"
41
40
# endif
42
41
#else
43
- # define _FULLVERSION _PACKAGENAME "Rev: " _REVISION " " _BUILD_DIRECTIVE " Hash: " _HASH " (Unix," _ENDIAN_STRING ")"
42
+ # define _FULLVERSION _PACKAGENAME "Rev: " _REVISION " " _BUILD_DIRECTIVE " Hash: " _HASH " (Unix, " _ENDIAN_STRING ")"
44
43
#endif
45
44
#endif
46
45
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ set(worldserver_LINK_FLAGS "")
146
146
add_executable (worldserver ${worldserver_SRCS} )
147
147
148
148
if ( NOT WIN32 )
149
- add_definitions (-D_TRINITY_CORE_CONFIG="${CONF_DIR} /worldserver.conf" )
149
+ add_definitions (-D_TRINITY_CORE_CONFIG=' "${CONF_DIR} /worldserver.conf" ' )
150
150
endif ()
151
151
152
152
add_dependencies (worldserver revision.h)
You can’t perform that action at this time.
0 commit comments