diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-02-24 14:43:23 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-02-24 14:43:23 (GMT) |
commit | 0ba40b59c7dc4c00c11902bae20fb9f03bde4168 (patch) | |
tree | f4f9b380ff83aae36438d5dd6d0c6d73706b3fd3 /Source/cmGlobalGenerator.cxx | |
parent | 1ecd48ba67b2e0d02227f848468f9398ec183be2 (diff) | |
download | CMake-0ba40b59c7dc4c00c11902bae20fb9f03bde4168.zip CMake-0ba40b59c7dc4c00c11902bae20fb9f03bde4168.tar.gz CMake-0ba40b59c7dc4c00c11902bae20fb9f03bde4168.tar.bz2 |
COMP: Handle preinstall properly on IDEs
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 52f3480..8f1bbe2 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1289,7 +1289,10 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets) cpackCommandLines.erase(cpackCommandLines.begin(), cpackCommandLines.end()); singleLine.erase(singleLine.begin(), singleLine.end()); depends.erase(depends.begin(), depends.end()); - depends.push_back("preinstall"); + if ( this->GetPreInstallAvailable() ) + { + depends.push_back("preinstall"); + } if(mf->GetDefinition("CMake_BINARY_DIR")) { // We are building CMake itself. We cannot use the original |