BUG: Fix issue #7058 - link the commsup lib explicitly for use on some Visual Studio + SDK combinations

This commit is contained in:
David Cole 2008-07-31 13:46:17 -04:00
parent 45b9a2d575
commit 3312685616
1 changed files with 8 additions and 0 deletions

View File

@ -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
#