diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-05-13 13:44:37 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2012-05-14 20:19:12 (GMT) |
commit | 7ced0732e875ab7cf4797ef33bd4b897bc41eb53 (patch) | |
tree | 8686f60bb78535f916ba5dfeec553cc9b2095cef /Source/cmInstallTargetsCommand.cxx | |
parent | b6fba35411053e334072a1203493140c67f3d30a (diff) | |
download | CMake-7ced0732e875ab7cf4797ef33bd4b897bc41eb53.zip CMake-7ced0732e875ab7cf4797ef33bd4b897bc41eb53.tar.gz CMake-7ced0732e875ab7cf4797ef33bd4b897bc41eb53.tar.bz2 |
make default install component name configurable
Until now an unnamed component was always named "Unspecified".
Now this name is taken from the new cmake variable CMAKE_INSTALL_DEFAULT_COMPONENT_NAME,
which is initialized to "Unspecified". But it can now be set to something
project-specific, per directory
Alex
Diffstat (limited to 'Source/cmInstallTargetsCommand.cxx')
-rw-r--r-- | Source/cmInstallTargetsCommand.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmInstallTargetsCommand.cxx b/Source/cmInstallTargetsCommand.cxx index 27fc175..277ccea 100644 --- a/Source/cmInstallTargetsCommand.cxx +++ b/Source/cmInstallTargetsCommand.cxx @@ -58,7 +58,8 @@ bool cmInstallTargetsCommand } this->Makefile->GetLocalGenerator()->GetGlobalGenerator() - ->AddInstallComponent("Unspecified"); + ->AddInstallComponent(this->Makefile->GetSafeDefinition( + "CMAKE_INSTALL_DEFAULT_COMPONENT_NAME")); return true; } |