diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-05-22 14:24:59 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-05-22 14:24:59 (GMT) |
commit | 4878c009057cf410fff98d8450e1e7cd2b3072ae (patch) | |
tree | a7ef13ec8a302e2530ec1a1fe5edda141fa9896e /Source/cmGlobalVisualStudioGenerator.cxx | |
parent | 6be930f0cfca31d62c3dc498b3fc9e756acca710 (diff) | |
download | CMake-4878c009057cf410fff98d8450e1e7cd2b3072ae.zip CMake-4878c009057cf410fff98d8450e1e7cd2b3072ae.tar.gz CMake-4878c009057cf410fff98d8450e1e7cd2b3072ae.tar.bz2 |
ENH: add the IMPORT keyword to ADD_EXECUTABLE(), which generates an
"imported" executable target. This can then be used e.g. with
ADD_CUSTOM_COMMAND() to generate stuff. It adds a second container for
"imported" targets, and FindTarget() now takes an additional argument bool
useImportedTargets to specify whether you also want to search in the
imported targets or only in the "normal" targets.
Alex
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index c5b291a..658516c 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -104,7 +104,7 @@ cmGlobalVisualStudioGenerator::FixUtilityDependsForTarget(cmTarget& target) target.GetUtilities().begin(); ui != target.GetUtilities().end(); ++ui) { - if(cmTarget* depTarget = this->FindTarget(0, ui->c_str())) + if(cmTarget* depTarget = this->FindTarget(0, ui->c_str(), false)) { if(depTarget->GetType() == cmTarget::STATIC_LIBRARY || depTarget->GetType() == cmTarget::SHARED_LIBRARY || @@ -149,7 +149,7 @@ cmGlobalVisualStudioGenerator::CreateUtilityDependTarget(cmTarget& target) this->CreateGUID(altNameStr.c_str()); // The intermediate target should depend on the original target. - if(cmTarget* alt = this->FindTarget(0, altNameStr.c_str())) + if(cmTarget* alt = this->FindTarget(0, altNameStr.c_str(), false)) { alt->AddUtility(target.GetName()); } @@ -205,7 +205,7 @@ cmGlobalVisualStudioGenerator::GetUtilityForTarget(cmTarget& target, { // The depender is a target that links. Lookup the dependee to // see if it provides an alternative dependency name. - if(cmTarget* depTarget = this->FindTarget(0, name)) + if(cmTarget* depTarget = this->FindTarget(0, name, false)) { // Check for an alternative name created by FixUtilityDepends. if(const char* altName = |