summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2012-02-25 09:20:57 (GMT)
committerBrad King <brad.king@kitware.com>2012-02-27 16:59:15 (GMT)
commit4f6fd961da510d9a2b6144e48272c68101376f0f (patch)
tree93f3bea9df8d948bff09aea7433af0a2ce539976 /Source/cmLocalGenerator.cxx
parent6a1c5a356911d3b75e60ecad86d7538e6de888f9 (diff)
downloadCMake-4f6fd961da510d9a2b6144e48272c68101376f0f.zip
CMake-4f6fd961da510d9a2b6144e48272c68101376f0f.tar.gz
CMake-4f6fd961da510d9a2b6144e48272c68101376f0f.tar.bz2
Drop if(...) check because condition is always true
GetLocation returns std::string::c_str() which is never NULL
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index ffbeb48..501fe61 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1902,15 +1902,8 @@ bool cmLocalGenerator::GetRealDependency(const char* inName,
case cmTarget::SHARED_LIBRARY:
case cmTarget::MODULE_LIBRARY:
case cmTarget::UNKNOWN_LIBRARY:
- {
- // Get the location of the target's output file and depend on it.
- if(const char* location = target->GetLocation(config))
- {
- dep = location;
- return true;
- }
- }
- break;
+ dep = target->GetLocation(config);
+ return true;
case cmTarget::UTILITY:
case cmTarget::GLOBAL_TARGET:
// A utility target has no file on which to depend. This was listed