diff options
author | Brad King <brad.king@kitware.com> | 2006-02-01 00:34:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-02-01 00:34:57 (GMT) |
commit | 73284a1c12c6707b802233111a7c1e5e18c94c14 (patch) | |
tree | 497a3ecdaeec475327f86c42f4fdb0e91da9c599 /Source/CMakeLists.txt | |
parent | 576d8b41cb10428a227c0f75ed8cc6d0a37fcd05 (diff) | |
download | CMake-73284a1c12c6707b802233111a7c1e5e18c94c14.zip CMake-73284a1c12c6707b802233111a7c1e5e18c94c14.tar.gz CMake-73284a1c12c6707b802233111a7c1e5e18c94c14.tar.bz2 |
ENH: Enabled build of VS 7 and 8 generators for MinGW.
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 0318d05..988b0ee 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -174,43 +174,43 @@ IF (WIN32) IF(NOT UNIX) SET(SRCS ${SRCS} cmGlobalBorlandMakefileGenerator.cxx - cmGlobalNMakeMakefileGenerator.cxx - cmGlobalWatcomWMakeGenerator.cxx + cmGlobalBorlandMakefileGenerator.h cmGlobalMSYSMakefileGenerator.cxx cmGlobalMinGWMakefileGenerator.cxx - cmGlobalVisualStudio6Generator.cxx - cmLocalVisualStudio6Generator.cxx - cmGlobalBorlandMakefileGenerator.h + cmGlobalNMakeMakefileGenerator.cxx cmGlobalNMakeMakefileGenerator.h + cmGlobalVisualStudio6Generator.cxx cmGlobalVisualStudio6Generator.h + cmGlobalVisualStudio71Generator.cxx + cmGlobalVisualStudio71Generator.h + cmGlobalVisualStudio7Generator.cxx + cmGlobalVisualStudio7Generator.h + cmGlobalVisualStudio8Generator.cxx + cmGlobalVisualStudio8Generator.h + cmGlobalWatcomWMakeGenerator.cxx + cmLocalVisualStudio6Generator.cxx cmLocalVisualStudio6Generator.h + cmLocalVisualStudio7Generator.cxx + cmLocalVisualStudio7Generator.h cmWin32ProcessExecution.cxx cmWin32ProcessExecution.h ) - IF(NOT MINGW) - SET(SRCS ${SRCS} - cmGlobalVisualStudio71Generator.h - cmGlobalVisualStudio8Generator.h - cmGlobalVisualStudio7Generator.h - cmLocalVisualStudio7Generator.h - cmGlobalVisualStudio8Generator.cxx - cmGlobalVisualStudio71Generator.cxx - cmGlobalVisualStudio7Generator.cxx - cmLocalVisualStudio7Generator.cxx) - ENDIF(NOT MINGW) ENDIF(NOT UNIX) ENDIF (WIN32) # create a library used by the command line and the GUI ADD_LIBRARY(CMakeLib ${SRCS}) TARGET_LINK_LIBRARIES(CMakeLib cmsys ${CMAKE_EXPAT_LIBRARIES} ${CMAKE_ZLIB_LIBRARIES} ${CMAKE_TAR_LIBRARIES}) -IF (UNIX) + +# On UNIX platforms we need the dl libraries for loading plugins. +IF(UNIX) TARGET_LINK_LIBRARIES(CMakeLib ${CMAKE_DL_LIBS}) -ENDIF (UNIX) -IF(CMAKE_BUILD_ON_VISUAL_STUDIO) - # On Visual Studio we need rpcrt4.lib for cmVisualStudio7 generator. - TARGET_LINK_LIBRARIES(CMakeLib rpcrt4.lib) -ENDIF(CMAKE_BUILD_ON_VISUAL_STUDIO) +ENDIF(UNIX) + +# On some platforms we need the rpcrt4 library for the VS 7 generators. +IF(CMAKE_BUILD_ON_VISUAL_STUDIO OR MINGW) + TARGET_LINK_LIBRARIES(CMakeLib rpcrt4) +ENDIF(CMAKE_BUILD_ON_VISUAL_STUDIO OR MINGW) # # CTestLib |