Merge pull request #58 from H0zen/develop21

[Build] Corrections to the build system.
This commit is contained in:
Antz 2015-12-13 07:57:16 +00:00
commit e89cf4bc44
3 changed files with 4 additions and 8 deletions

View File

@ -105,6 +105,9 @@ if(ACE_USE_EXTERNAL)
endif() endif()
else() else()
include(cmake/ImportACE.cmake) include(cmake/ImportACE.cmake)
if(NOT(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD"))
add_definitions(-DHAVE_ACE_STACK_TRACE_H)
endif()
endif() endif()
if(POSTGRESQL) if(POSTGRESQL)

View File

@ -37,8 +37,6 @@ link_directories(
${ACE_LIBRARIES_DIR} ${ACE_LIBRARIES_DIR}
) )
set(HAVE_ACE_STACK_TRACE_H ON) # config.h.cmake
#if(WIN32) #if(WIN32)
# foreach(DIR ${ACE_LIBRARIES_DIR}) # foreach(DIR ${ACE_LIBRARIES_DIR})
# install( # install(

View File

@ -27,7 +27,6 @@
#include "Common/Common.h" #include "Common/Common.h"
#define HAVE_ACE_STACK_TRACE_H 1
#ifdef HAVE_ACE_STACK_TRACE_H #ifdef HAVE_ACE_STACK_TRACE_H
# include <ace/Stack_Trace.h> # include <ace/Stack_Trace.h>
@ -71,10 +70,6 @@
} }
#endif #endif
#ifdef MANGOS_DEBUG #define MANGOS_ASSERT WPError // Error even if in release mode.
# define MANGOS_ASSERT WPError
#else
# define MANGOS_ASSERT WPError // Error even if in release mode.
#endif
#endif #endif