summaryrefslogtreecommitdiff
path: root/CMakeCPack.cmake
diff options
context:
space:
mode:
authorKonstantin Podsvirov <konstantin@podsvirov.pro>2015-07-24 10:15:06 +0300
committerBrad King <brad.king@kitware.com>2015-07-27 10:30:41 -0400
commit068e7962bb8a90ae9ae6b7d6da520a70701820af (patch)
tree196b9da63a763e5a824ed67bbb2843249af0c556 /CMakeCPack.cmake
parent42f0155bb9f7cb65c7af103ec1170f4193244d69 (diff)
downloadcmake-068e7962bb8a90ae9ae6b7d6da520a70701820af.tar.gz
CMake: Add CMake_INSTALL_DEPENDENCIES option
By default this option is ON. Turn OFF to disable installing runtime 3rd-party dependencies.
Diffstat (limited to 'CMakeCPack.cmake')
-rw-r--r--CMakeCPack.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeCPack.cmake b/CMakeCPack.cmake
index ce10ad0ed8..a0aadcc9f0 100644
--- a/CMakeCPack.cmake
+++ b/CMakeCPack.cmake
@@ -22,7 +22,9 @@ if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
endif()
- include(${CMake_SOURCE_DIR}/Modules/InstallRequiredSystemLibraries.cmake)
+ if(CMake_INSTALL_DEPENDENCIES)
+ include(${CMake_SOURCE_DIR}/Modules/InstallRequiredSystemLibraries.cmake)
+ endif()
endif()
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "CMake is a build tool")