summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cpack.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-05 17:16:30 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-05 17:16:30 (GMT)
commit88b4d5c179cc29c14ecf3fed51cf0e31612f8b99 (patch)
treecc2e8615918011abce802fa1b7886f0ae03b7ea0 /Source/CPack/cpack.cxx
parentaf923d13fa442205e91b69950b17cdd976fe9967 (diff)
downloadCMake-88b4d5c179cc29c14ecf3fed51cf0e31612f8b99.zip
CMake-88b4d5c179cc29c14ecf3fed51cf0e31612f8b99.tar.gz
CMake-88b4d5c179cc29c14ecf3fed51cf0e31612f8b99.tar.bz2
BUG: Use objects that exist
Diffstat (limited to 'Source/CPack/cpack.cxx')
-rw-r--r--Source/CPack/cpack.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index 419261f..8c0857f 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -251,7 +251,7 @@ int main (int argc, char *argv[])
cpackDefinitions::MapType::iterator cdit;
for ( cdit = definitions.m_Map.begin(); cdit != definitions.m_Map.end(); ++cdit )
{
- cpackGenerator->SetOption(cdit->first.c_str(), cdit->second.c_str());
+ mf->AddDefinition(cdit->first.c_str(), cdit->second.c_str());
}
const char* gen = mf->GetDefinition("CPACK_GENERATOR");