diff options
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index af47b2e..6481d47 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -165,7 +165,7 @@ void cmTarget::TraceVSDependencies(std::string projFile, // watch for target dependencies, std::string libPath = dep + "_CMAKE_PATH"; const char* cacheValue = makefile->GetDefinition(libPath.c_str()); - if (cacheValue) + if (cacheValue && *cacheValue) { // add the depend as a utility on the target this->AddUtility(dep.c_str()); |