mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 22:10:32 +00:00
Merge topic 'pch-msvc-no-path-repetition'
07fe1bcd4e
PCH: No repeated path for internal generated PCH files (MSVC case)
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4236
This commit is contained in:
commit
6bd07b9de1
@ -3276,7 +3276,8 @@ std::string cmLocalGenerator::GetObjectFileNameWithoutTarget(
|
||||
// CMakeFiles/<target>.dir/CMakeFiles/<target>.dir/generated_source_file.obj
|
||||
const char* unitySourceFile = source.GetProperty("UNITY_SOURCE_FILE");
|
||||
const char* pchExtension = source.GetProperty("PCH_EXTENSION");
|
||||
if (unitySourceFile || pchExtension) {
|
||||
const bool isPchObject = objectName.find("cmake_pch") != std::string::npos;
|
||||
if (unitySourceFile || pchExtension || isPchObject) {
|
||||
if (pchExtension) {
|
||||
customOutputExtension = pchExtension;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user