From 068e7962bb8a90ae9ae6b7d6da520a70701820af Mon Sep 17 00:00:00 2001 From: Konstantin Podsvirov Date: Fri, 24 Jul 2015 10:15:06 +0300 Subject: CMake: Add CMake_INSTALL_DEPENDENCIES option By default this option is ON. Turn OFF to disable installing runtime 3rd-party dependencies. --- CMakeCPack.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CMakeCPack.cmake') 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") -- cgit v1.2.1