summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackRPMGenerator.cxx
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2010-12-12 11:55:02 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2010-12-12 11:55:02 (GMT)
commit6d94ea3692c5dd3aafaf8183e31f6060ca2a4669 (patch)
tree0bf27c6a4aa58962a2eff02e98f55e45d7978b1e /Source/CPack/cmCPackRPMGenerator.cxx
parent1b98d99c28949347c7c6a1e5ee67ee8e49670277 (diff)
downloadCMake-6d94ea3692c5dd3aafaf8183e31f6060ca2a4669.zip
CMake-6d94ea3692c5dd3aafaf8183e31f6060ca2a4669.tar.gz
CMake-6d94ea3692c5dd3aafaf8183e31f6060ca2a4669.tar.bz2
CPack use IsOn when it's better than IsSet
This authorize more control because one can set CPACK_ARCHIVE_COMPONENT_INSTALL to ON globally and then set it selectively to OFF inside a CPack project config file. Sidenote: GetOption ought to be a 'const' method.
Diffstat (limited to 'Source/CPack/cmCPackRPMGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackRPMGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackRPMGenerator.cxx b/Source/CPack/cmCPackRPMGenerator.cxx
index 34e93d3..a5db78f 100644
--- a/Source/CPack/cmCPackRPMGenerator.cxx
+++ b/Source/CPack/cmCPackRPMGenerator.cxx
@@ -108,7 +108,7 @@ int cmCPackRPMGenerator::PackageFiles()
bool cmCPackRPMGenerator::SupportsComponentInstallation() const
{
- if (IsSet("CPACK_RPM_COMPONENT_INSTALL"))
+ if (IsOn("CPACK_RPM_COMPONENT_INSTALL"))
{
return true;
}