summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-29 14:03:47 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-29 14:03:47 (GMT)
commiteef327b944a590373faa8df4eca7dbf0387c6f5c (patch)
tree736c79794fbc57142854c6855bcb6da92b4bd281 /Source/cmLocalGenerator.cxx
parent8a761b8f96942fe586bb932fbe840a4679a35705 (diff)
downloadCMake-eef327b944a590373faa8df4eca7dbf0387c6f5c.zip
CMake-eef327b944a590373faa8df4eca7dbf0387c6f5c.tar.gz
CMake-eef327b944a590373faa8df4eca7dbf0387c6f5c.tar.bz2
ENH: Adding install/local global target for Makefile generators. This runs installation only in the current directory and not subdirectories.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index a251ee2..e1d25b5 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -397,7 +397,8 @@ void cmLocalGenerator::GenerateInstallRules()
// Include install scripts from subdirectories.
if(!this->Children.empty())
{
- fout << "# Include the install script for each subdirectory.\n";
+ fout << "IF(NOT CMAKE_INSTALL_LOCAL_ONLY)\n";
+ fout << " # Include the install script for each subdirectory.\n";
for(std::vector<cmLocalGenerator*>::const_iterator
ci = this->Children.begin(); ci != this->Children.end(); ++ci)
{
@@ -405,11 +406,12 @@ void cmLocalGenerator::GenerateInstallRules()
{
std::string odir = (*ci)->GetMakefile()->GetStartOutputDirectory();
cmSystemTools::ConvertToUnixSlashes(odir);
- fout << "INCLUDE(\"" << odir.c_str()
+ fout << " INCLUDE(\"" << odir.c_str()
<< "/cmake_install.cmake\")" << std::endl;
}
}
fout << "\n";
+ fout << "ENDIF(NOT CMAKE_INSTALL_LOCAL_ONLY)\n";
}
// Record the install manifest.