diff options
author | Konstantin Podsvirov <konstantin@podsvirov.pro> | 2015-07-03 09:58:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-07 13:16:40 (GMT) |
commit | c823f04e0cbc4753cc5b6d5c9f45b9f015a12568 (patch) | |
tree | 4edbd2e75f2c40e2884930e203dffa170864dcb6 /CMakeLists.txt | |
parent | 7383e4d722809e2460bd4e87ea7fdbef5f64c303 (diff) | |
download | CMake-c823f04e0cbc4753cc5b6d5c9f45b9f015a12568.zip CMake-c823f04e0cbc4753cc5b6d5c9f45b9f015a12568.tar.gz CMake-c823f04e0cbc4753cc5b6d5c9f45b9f015a12568.tar.bz2 |
CMake: New option CMake_INSTALL_COMPONENTS
By default is OFF.
Now it's used with CPack IFW himself installer.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c40a1a..5e94028 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,6 +59,17 @@ if(CMAKE_ENCODING_UTF8) set(KWSYS_ENCODING_DEFAULT_CODEPAGE CP_UTF8) endif() +# option to use COMPONENT with install command +option(CMake_INSTALL_COMPONENTS "Using components when installing" OFF) +mark_as_advanced(CMake_INSTALL_COMPONENTS) +macro(CMake_OPTIONAL_COMPONENT NAME) + if(CMake_INSTALL_COMPONENTS) + set(COMPONENT COMPONENT ${NAME}) + else() + set(COMPONENT) + endif() +endmacro() + #----------------------------------------------------------------------- # a macro to deal with system libraries, implemented as a macro # simply to improve readability of the main script @@ -652,7 +663,6 @@ if(NOT CMake_TEST_EXTERNAL_CMAKE) DIRECTORY_PERMISSIONS OWNER_READ OWNER_EXECUTE OWNER_WRITE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE - COMPONENT data PATTERN "*.sh*" PERMISSIONS OWNER_READ OWNER_EXECUTE OWNER_WRITE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE |