diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-12-07 20:47:39 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-12-07 20:47:39 (GMT) |
commit | 8e5f3bb9e1fac42d3adef98858b6c3411de584e5 (patch) | |
tree | f8ff44049c1fc4e986bac65e094a126d9722082a /Source/cmCacheManager.cxx | |
parent | f52a30472833dd06591ada9c685e51d2963cc823 (diff) | |
download | CMake-8e5f3bb9e1fac42d3adef98858b6c3411de584e5.zip CMake-8e5f3bb9e1fac42d3adef98858b6c3411de584e5.tar.gz CMake-8e5f3bb9e1fac42d3adef98858b6c3411de584e5.tar.bz2 |
ENH: add mark as not advanced to mark as advanced
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r-- | Source/cmCacheManager.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index a8ea49a..5392937 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -563,9 +563,11 @@ bool cmCacheManager::IsAdvanced(const char* key) { std::string advancedVar = key; advancedVar += "-ADVANCED"; - if(cmCacheManager::GetInstance()->GetCacheEntry(advancedVar.c_str())) + const char* value = + cmCacheManager::GetInstance()->GetCacheValue(advancedVar.c_str()); + if(value) { - return true; + return cmSystemTools::IsOn(value); } return false; } |