diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-08-13 13:57:23 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-08-19 08:49:30 (GMT) |
commit | 5a2a275bb41e04891c2541a8e185b6daed259b0b (patch) | |
tree | f925d8384da5c4c9d921a6b47ad648f9b0b1bf78 /Source/cmGlobalVisualStudio71Generator.cxx | |
parent | 2984df91002fe3e3db0d38f364e9842024a8ab2e (diff) | |
download | CMake-5a2a275bb41e04891c2541a8e185b6daed259b0b.zip CMake-5a2a275bb41e04891c2541a8e185b6daed259b0b.tar.gz CMake-5a2a275bb41e04891c2541a8e185b6daed259b0b.tar.bz2 |
Refactor: reduce cmToCStr usage
Diffstat (limited to 'Source/cmGlobalVisualStudio71Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio71Generator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudio71Generator.cxx b/Source/cmGlobalVisualStudio71Generator.cxx index 0083c40..21ea7e6 100644 --- a/Source/cmGlobalVisualStudio71Generator.cxx +++ b/Source/cmGlobalVisualStudio71Generator.cxx @@ -157,11 +157,11 @@ void cmGlobalVisualStudio71Generator::WriteProjectDepends( // executables to the libraries it uses are also done here void cmGlobalVisualStudio71Generator::WriteExternalProject( std::ostream& fout, const std::string& name, const std::string& location, - const char* typeGuid, - const std::set<BT<std::pair<std::string, bool>>>& depends) + cmProp typeGuid, const std::set<BT<std::pair<std::string, bool>>>& depends) { fout << "Project(\"{" - << (typeGuid ? typeGuid : this->ExternalProjectType(location)) + << (typeGuid ? typeGuid + : std::string(this->ExternalProjectType(location))) << "}\") = \"" << name << "\", \"" << this->ConvertToSolutionPath(location) << "\", \"{" << this->GetGUID(name) << "}\"\n"; |