summaryrefslogtreecommitdiffstats
path: root/Modules/CPack.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-17 01:15:03 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-17 01:15:03 (GMT)
commit06b6308ab4300008fa3cef009f3fa0f05647fde4 (patch)
tree75f783744fb97e32d1594117b56aaf3a722fc1a2 /Modules/CPack.cmake
parent8facf1f4069fcf56f2b2baf14211ed39030c4214 (diff)
downloadCMake-06b6308ab4300008fa3cef009f3fa0f05647fde4.zip
CMake-06b6308ab4300008fa3cef009f3fa0f05647fde4.tar.gz
CMake-06b6308ab4300008fa3cef009f3fa0f05647fde4.tar.bz2
BUG: Do not install MSVC dlls for a non-MSVC build.
Diffstat (limited to 'Modules/CPack.cmake')
-rw-r--r--Modules/CPack.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CPack.cmake b/Modules/CPack.cmake
index a320ce7..e0295a2 100644
--- a/Modules/CPack.cmake
+++ b/Modules/CPack.cmake
@@ -50,7 +50,7 @@ SET(CPACK_BINARY_DIR "${CMAKE_BINARY_DIR}")
# Search for system runtime libraries based on the platform. This is
# not complete because it is used only for the release process by the
# developers.
-IF(WIN32 AND NOT CYGWIN)
+IF(MSVC)
STRING(REGEX REPLACE "\\\\" "/" SYSTEMROOT "$ENV{SYSTEMROOT}")
FOREACH(lib
"${SYSTEMROOT}/system32/mfc71.dll"
@@ -62,7 +62,7 @@ IF(WIN32 AND NOT CYGWIN)
${CMake_INSTALL_SYSTEM_RUNTIME_LIBS} ${lib})
ENDIF(EXISTS ${lib})
ENDFOREACH(lib)
-ENDIF(WIN32 AND NOT CYGWIN)
+ENDIF(MSVC)
# Include system runtime libraries in the installation if any are
# specified by CMake_INSTALL_SYSTEM_RUNTIME_LIBS.