diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-12-18 18:04:28 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-12-18 18:04:28 (GMT) |
commit | c3840b5cc3e26886bab16faf7e27a4ef80f3686d (patch) | |
tree | 854f1415ffa4b5dc377dfee9f213c437bf1b8c18 /Source/cmTarget.cxx | |
parent | 31bb398dc332c74726f5a896973450f6518685d1 (diff) | |
download | CMake-c3840b5cc3e26886bab16faf7e27a4ef80f3686d.zip CMake-c3840b5cc3e26886bab16faf7e27a4ef80f3686d.tar.gz CMake-c3840b5cc3e26886bab16faf7e27a4ef80f3686d.tar.bz2 |
BUG: Fix Bug #445 - Same library in multiple projects can cause problems
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()); |