MCPcopy Create free account
hub / github.com/Kitware/CMake / cmExportFileGeneratorEscape

Function cmExportFileGeneratorEscape

Source/cmExportCMakeConfigGenerator.cxx:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31struct cmLinkInterface;
32
33static std::string cmExportFileGeneratorEscape(std::string const& str)
34{
35 // Escape a property value for writing into a .cmake file.
36 std::string result = cmOutputConverter::EscapeForCMake(str);
37 // Un-escape variable references generated by our own export code.
38 cmSystemTools::ReplaceString(result, "\\${_IMPORT_PREFIX}",
39 "${_IMPORT_PREFIX}");
40 cmSystemTools::ReplaceString(result, "\\${CMAKE_IMPORT_LIBRARY_SUFFIX}",
41 "${CMAKE_IMPORT_LIBRARY_SUFFIX}");
42 return result;
43}
44
45cmExportCMakeConfigGenerator::cmExportCMakeConfigGenerator() = default;
46

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…