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

Function unity_file_extension

Source/cmLocalGenerator.cxx:3157–3172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3155
3156namespace {
3157std::string unity_file_extension(std::string const& lang)
3158{
3159 std::string extension;
3160 if (lang == "C") {
3161 extension = "_c.c";
3162 } else if (lang == "CXX") {
3163 extension = "_cxx.cxx";
3164 } else if (lang == "CUDA") {
3165 extension = "_cu.cu";
3166 } else if (lang == "OBJC") {
3167 extension = "_m.m";
3168 } else if (lang == "OBJCXX") {
3169 extension = "_mm.mm";
3170 }
3171 return extension;
3172}
3173
3174char const* unity_file_prefix(cmGeneratorTarget* target)
3175{

Callers 2

AddUnityFilesModeAutoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…