diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-08-21 13:16:07 -0400 |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-08-21 13:16:07 -0400 |
commit | 9f870d3efbb89021b4c3fb931938f8724d5d75e4 (patch) | |
tree | d77e0cae57376654b6f16689be6401625d087fa1 /Source/cmCPluginAPI.cxx | |
parent | 96f8d18f8d41f867c506b7f770effd0723023582 (diff) | |
download | cmake-9f870d3efbb89021b4c3fb931938f8724d5d75e4.tar.gz |
minor bug
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r-- | Source/cmCPluginAPI.cxx | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index 33acdea0c0..f1189f4ed1 100644 --- a/Source/cmCPluginAPI.cxx +++ b/Source/cmCPluginAPI.cxx @@ -70,27 +70,27 @@ void cmAddCacheDefinition(void *arg, const char* name, const char* value, { case CM_CACHE_BOOL: mf->AddCacheDefinition(name,value,doc, - cmCacheManager::CacheEntryType::BOOL); + cmCacheManager::BOOL); break; case CM_CACHE_PATH: mf->AddCacheDefinition(name,value,doc, - cmCacheManager::CacheEntryType::PATH); + cmCacheManager::PATH); break; case CM_CACHE_FILEPATH: mf->AddCacheDefinition(name,value,doc, - cmCacheManager::CacheEntryType::FILEPATH); + cmCacheManager::FILEPATH); break; case CM_CACHE_STRING: mf->AddCacheDefinition(name,value,doc, - cmCacheManager::CacheEntryType::STRING); + cmCacheManager::STRING); break; case CM_CACHE_INTERNAL: mf->AddCacheDefinition(name,value,doc, - cmCacheManager::CacheEntryType::INTERNAL); + cmCacheManager::INTERNAL); break; case CM_CACHE_STATIC: mf->AddCacheDefinition(name,value,doc, - cmCacheManager::CacheEntryType::STATIC); + cmCacheManager::STATIC); break; } } @@ -236,16 +236,13 @@ void cmAddLinkLibraryForTarget(void *arg, const char *tgt, const char*value, switch (libtype) { case CM_LIBRARY_GENERAL: - mf->AddLinkLibraryForTarget(tgt,value, - cmTarget::LinkLibraryType::GENERAL); + mf->AddLinkLibraryForTarget(tgt,value, cmTarget::GENERAL); break; case CM_LIBRARY_DEBUG: - mf->AddLinkLibraryForTarget(tgt,value, - cmTarget::LinkLibraryType::DEBUG); + mf->AddLinkLibraryForTarget(tgt,value, cmTarget::DEBUG); break; case CM_LIBRARY_OPTIMIZED: - mf->AddLinkLibraryForTarget(tgt,value, - cmTarget::LinkLibraryType::OPTIMIZED); + mf->AddLinkLibraryForTarget(tgt,value, cmTarget::OPTIMIZED); break; } } @@ -267,8 +264,9 @@ char *cmExpandVariablesInString(void *arg, const char *source, int escapeQuotes, int atOnly) { cmMakefile *mf = static_cast<cmMakefile *>(arg); + std::string barf = source; std::string result = - mf->ExpandVariablesInString(std::string(source), + mf->ExpandVariablesInString(barf, (escapeQuotes ? true : false), (atOnly ? true : false)); char *res = static_cast<char *>(malloc(result.size() + 1)); |