From 42f5ff6943315ef3c6a9b621dd2c150abe0fa9cf Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Tue, 2 Nov 2010 20:39:19 +0000 Subject: [PATCH] [MINGW] add CRTDLL definition so that the startup code for dlls is actually compiled svn path=/branches/cmake-bringup/; revision=49452 --- lib/3rdparty/mingw/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/3rdparty/mingw/CMakeLists.txt b/lib/3rdparty/mingw/CMakeLists.txt index 8390d6ccffc..8157a509a6c 100644 --- a/lib/3rdparty/mingw/CMakeLists.txt +++ b/lib/3rdparty/mingw/CMakeLists.txt @@ -55,6 +55,7 @@ add_library(mingw_wmain crt0_w.c crtexe.c dllargv.c) set_property(TARGET mingw_wmain PROPERTY COMPILE_DEFINITIONS WPRFLAG UNICODE _UNICODE) add_dependencies(mingw_wmain psdk) +add_definitions(-DCRTDLL) add_library(mingw_dllmain crtdll.c dllargv.c) add_dependencies(mingw_dllmain psdk) @@ -69,4 +70,4 @@ add_custom_target(oldnames ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/liboldnames.a add_library(getopt getopt.c) set_property(TARGET getopt PROPERTY COMPILE_DEFINITIONS _DLL __USE_CRTIMP) -add_dependencies(getopt psdk) \ No newline at end of file +add_dependencies(getopt psdk)