diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-09-02 16:42:21 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-09-10 13:46:21 (GMT) |
commit | f84193292cb36e26d13a3f1f56a1539f088e8827 (patch) | |
tree | 797f2c1cb1014e03fa9b2f8e5bfa7d7966eb3eb8 /Source/cmGlobalVisualStudioVersionedGenerator.cxx | |
parent | 3c2e58eeb884adea8ee12462f7d471ab518a673f (diff) | |
download | CMake-f84193292cb36e26d13a3f1f56a1539f088e8827.zip CMake-f84193292cb36e26d13a3f1f56a1539f088e8827.tar.gz CMake-f84193292cb36e26d13a3f1f56a1539f088e8827.tar.bz2 |
Use new AddCacheEntry signatures
Diffstat (limited to 'Source/cmGlobalVisualStudioVersionedGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudioVersionedGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudioVersionedGenerator.cxx b/Source/cmGlobalVisualStudioVersionedGenerator.cxx index d0ad53e..3ecf32e 100644 --- a/Source/cmGlobalVisualStudioVersionedGenerator.cxx +++ b/Source/cmGlobalVisualStudioVersionedGenerator.cxx @@ -467,9 +467,9 @@ bool cmGlobalVisualStudioVersionedGenerator::SetGeneratorInstance( // Save the selected instance persistently. std::string genInstance = mf->GetSafeDefinition("CMAKE_GENERATOR_INSTANCE"); if (vsInstance != genInstance) { - this->CMakeInstance->AddCacheEntry( - "CMAKE_GENERATOR_INSTANCE", vsInstance.c_str(), - "Generator instance identifier.", cmStateEnums::INTERNAL); + this->CMakeInstance->AddCacheEntry("CMAKE_GENERATOR_INSTANCE", vsInstance, + "Generator instance identifier.", + cmStateEnums::INTERNAL); } return true; |