From c823f04e0cbc4753cc5b6d5c9f45b9f015a12568 Mon Sep 17 00:00:00 2001 From: Konstantin Podsvirov Date: Fri, 3 Jul 2015 12:58:22 +0300 Subject: CMake: New option CMake_INSTALL_COMPONENTS By default is OFF. Now it's used with CPack IFW himself installer. --- Source/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/CMakeLists.txt') diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 83d3090eb8..aa3f675e09 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -743,7 +743,8 @@ if(APPLE) endif() foreach(_tool ${_tools}) - install(TARGETS ${_tool} DESTINATION bin COMPONENT ${_tool}) + CMake_OPTIONAL_COMPONENT(${_tool}) + install(TARGETS ${_tool} DESTINATION bin ${COMPONENT}) endforeach() install(FILES cmCPluginAPI.h DESTINATION ${CMAKE_DATA_DIR}/include) -- cgit v1.2.1