From 4553cddf93bb249be6d006c74c414272e2bd579e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Thu, 7 Oct 2010 11:47:29 +0000 Subject: [PATCH] [CMAKE] - add missing file to mingw_common svn path=/branches/cmake-bringup/; revision=49030 --- lib/3rdparty/mingw/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/3rdparty/mingw/CMakeLists.txt b/lib/3rdparty/mingw/CMakeLists.txt index 21b18bc4225..41e48f84586 100644 --- a/lib/3rdparty/mingw/CMakeLists.txt +++ b/lib/3rdparty/mingw/CMakeLists.txt @@ -7,7 +7,7 @@ if(NOT MSVC) add_definitions(-Wno-main) endif(NOT MSVC) -set(MINGW_COMMON_SOURCE +list(APPEND MINGW_COMMON_SOURCE _newmode.c atonexit.c binmode.c @@ -27,6 +27,7 @@ set(MINGW_COMMON_SOURCE pseudo-reloc.c pseudo-reloc-list.c tlsmcrt.c + tlsmthread.c tlssup.c tlsthrd.c txtmode.c @@ -40,7 +41,8 @@ set(MINGW_COMMON_SOURCE add_library(mingw_common ${MINGW_COMMON_SOURCE}) if(NOT MSVC) -target_link_libraries(mingw_common oldnames -lkernel32 -lntdll) + target_link_libraries(mingw_common oldnames) + add_importlibs(mingw_common kernel32 ntdll) endif(NOT MSVC) set_target_properties(mingw_common PROPERTIES COMPILE_DEFINITIONS _M_CEE_PURE)