mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 14:50:10 -06:00
Merge topic 'resolve-full-path-at-generate-time'
48d1456b3dUnityBuild: Resolve full paths of unity source includesec2f130aa9cmFileAPI: Resolve full path in PCH source comparison Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4029
This commit is contained in:
@@ -875,7 +875,7 @@ CompileData Target::BuildCompileData(cmSourceFile* sf)
|
||||
|
||||
if (!pchSource.empty() && !sf->GetProperty("SKIP_PRECOMPILE_HEADERS")) {
|
||||
std::string pchOptions;
|
||||
if (sf->GetFullPath() == pchSource) {
|
||||
if (sf->ResolveFullPath() == pchSource) {
|
||||
pchOptions =
|
||||
this->GT->GetPchCreateCompileOptions(this->Config, fd.Language);
|
||||
} else {
|
||||
|
||||
@@ -2486,7 +2486,7 @@ void cmLocalGenerator::AddUnityBuild(cmGeneratorTarget* target)
|
||||
file << beforeInclude << "\n";
|
||||
}
|
||||
|
||||
file << "#include \"" << sf->GetFullPath() << "\"\n";
|
||||
file << "#include \"" << sf->ResolveFullPath() << "\"\n";
|
||||
|
||||
if (afterInclude) {
|
||||
file << afterInclude << "\n";
|
||||
|
||||
Reference in New Issue
Block a user