diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-04-30 18:56:06 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-04-30 18:56:06 (GMT) |
commit | 2fb2207c1025f86cc5b62faf8c3a1ca15ea18152 (patch) | |
tree | 3238682d3b82c1a09285b0942b0e62ee390f0b08 /Source/cmFindLibraryCommand.cxx | |
parent | e7519358e748e66f88b7c277a6d59fff502dad4a (diff) | |
download | CMake-2fb2207c1025f86cc5b62faf8c3a1ca15ea18152.zip CMake-2fb2207c1025f86cc5b62faf8c3a1ca15ea18152.tar.gz CMake-2fb2207c1025f86cc5b62faf8c3a1ca15ea18152.tar.bz2 |
bug fixes
Diffstat (limited to 'Source/cmFindLibraryCommand.cxx')
-rw-r--r-- | Source/cmFindLibraryCommand.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/cmFindLibraryCommand.cxx b/Source/cmFindLibraryCommand.cxx index 0794101..6d2df8f 100644 --- a/Source/cmFindLibraryCommand.cxx +++ b/Source/cmFindLibraryCommand.cxx @@ -55,16 +55,13 @@ bool cmFindLibraryCommand::Invoke(std::vector<std::string>& args) helpString += args[1] + " library be found"; const char* cacheValue = cmCacheManager::GetInstance()->GetCacheValue(args[0].c_str()); - if(cacheValue) + if(cacheValue && strcmp(cacheValue, "NOTFOUND")) { - if(strcmp(cacheValue, "NOTFOUND") != 0) - { m_Makefile->AddDefinition(args[0].c_str(), cacheValue); cmCacheManager::GetInstance()->AddCacheEntry(args[0].c_str(), cacheValue, helpString.c_str(), cmCacheManager::PATH); - } return true; } |