From 33126856165eb7d3315b9320d8a2f3e15d89779c Mon Sep 17 00:00:00 2001 From: David Cole Date: Thu, 31 Jul 2008 13:46:17 -0400 Subject: BUG: Fix issue #7058 - link the commsup lib explicitly for use on some Visual Studio + SDK combinations --- Source/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 516e208..140e427 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -302,6 +302,14 @@ IF(CMAKE_BUILD_ON_VISUAL_STUDIO OR MINGW) TARGET_LINK_LIBRARIES(CMakeLib rpcrt4) ENDIF(CMAKE_BUILD_ON_VISUAL_STUDIO OR MINGW) +# With the Microsoft compiler (for _bstr_t support used from +# cmCallVisualStudioMacro) we need the comsupp lib. Needed when +# _MSC_VER and HAVE_COMDEF_H are defined... +# +IF(MSVC) + TARGET_LINK_LIBRARIES(CMakeLib optimized comsupp debug comsuppd) +ENDIF(MSVC) + # # CTestLib # -- cgit v0.12