From c4a8cc7e2f3890b8d82051c89748bea80350e8d4 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Wed, 17 Dec 2008 20:17:30 +0000 Subject: Fixed issue with the MSVC++ build of Anope crashing on a DLL throwing an exception, thanks to w00t for pointing out the overloaded new/delete operators from InspIRCd. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1838 5417fbe8-f217-4b02-8779-1006273d7864 --- src/protocol/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/protocol') diff --git a/src/protocol/CMakeLists.txt b/src/protocol/CMakeLists.txt index 50d763651..1c91a1ff2 100644 --- a/src/protocol/CMakeLists.txt +++ b/src/protocol/CMakeLists.txt @@ -50,6 +50,9 @@ foreach(SRC ${PROTOCOL_SRCS}) if(HEADERS) set_source_files_properties(${SRC} PROPERTIES OBJECT_DEPENDS "${HEADERS}") endif(HEADERS) + if(WIN32 AND MSVC) + set(SRC ${SRC} ${Anope_SOURCE_DIR}/src/win32_memory.cpp) + endif(WIN32 AND MSVC) add_library(${SO} MODULE ${SRC}) add_dependencies(${SO} ${PROGRAM_NAME}) #set_target_properties(${SO} PROPERTIES PREFIX "" SUFFIX "" COMPILE_FLAGS ${CXXFLAGS}) -- cgit