summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-03-28 22:59:46 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-03-28 22:59:46 (GMT)
commit99feab3528325833033c32675adc9c2b138cd6ac (patch)
treec36f04e9e5b3e0a3c114f754832699e00cb354a8 /Source/cmFileCommand.cxx
parent747e67b7e358d86e7677cd4436a560f545d19dc2 (diff)
downloadCMake-99feab3528325833033c32675adc9c2b138cd6ac.zip
CMake-99feab3528325833033c32675adc9c2b138cd6ac.tar.gz
CMake-99feab3528325833033c32675adc9c2b138cd6ac.tar.bz2
ENH: When installing project, write manifest
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 18489cc..04608b5 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -414,6 +414,14 @@ bool cmFileCommand::HandleInstallCommand(
return false;
}
+ const char* manifest_files =
+ m_Makefile->GetDefinition("CMAKE_INSTALL_MANIFEST_FILES");
+ std::string smanifest_files;
+ if ( manifest_files )
+ {
+ smanifest_files = manifest_files;
+ }
+
for ( i = 0; i < files.size(); i ++ )
{
std::string destfile
@@ -475,6 +483,7 @@ bool cmFileCommand::HandleInstallCommand(
{
perror("problem doing chmod.");
}
+ smanifest_files += ";" + destfile;
}
}
else
@@ -488,6 +497,8 @@ bool cmFileCommand::HandleInstallCommand(
}
}
}
+ m_Makefile->AddDefinition("CMAKE_INSTALL_MANIFEST_FILES",
+ smanifest_files.c_str());
return true;
}