Refactor cmMakefile::AddDefinition to accept the value argument as cm:string_view
Refactors cmDefinitions
and cmMakefile
to accept a cm::string_view
instead of const char *
for definition value arguments.
- Refactors
cmDefinitions::Set
to accept the value argument ascm::string_view
- Adds
cmDefinitions::Unset
(to be used instead ofcmDefinitions::Set(key, nullptr)
) - Refactors
cmMakefile::AddDefinition
to accept the value argument ascm::string_view
- Removes
c_str()
calls whencmDefinitions::Set
orcmMakefile::AddDefinition
is called with astd::string
argument.