mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 03:59:58 +00:00
Merge topic 'ninja-multi-custom-command-deps'
081c4679f7
Ninja Multi-Config: Don't build target dependencies for custom commands
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4423
This commit is contained in:
commit
9871190dd7
@ -1180,7 +1180,8 @@ void cmGlobalNinjaGenerator::AppendTargetDependsClosure(
|
||||
cmNinjaOuts this_outs; // this will be the new cache entry
|
||||
|
||||
for (auto const& dep_target : this->GetTargetDirectDepends(target)) {
|
||||
if (dep_target->GetType() == cmStateEnums::INTERFACE_LIBRARY) {
|
||||
if (dep_target->GetType() == cmStateEnums::INTERFACE_LIBRARY ||
|
||||
(this->EnableCrossConfigBuild() && !dep_target.IsCross())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -23,12 +23,11 @@ check_files("${RunCMake_TEST_BINARY_DIR}"
|
||||
|
||||
${TARGET_OBJECT_FILES_generatorobj_Release}
|
||||
|
||||
${TARGET_OBJECT_FILES_emptyobj_Release}
|
||||
|
||||
EXCLUDE
|
||||
${TARGET_OBJECT_FILES_generator_Debug}
|
||||
|
||||
${TARGET_OBJECT_FILES_generated_Release}
|
||||
${TARGET_OBJECT_FILES_emptyobj_Release}
|
||||
|
||||
${TARGET_OBJECT_FILES_generator_MinSizeRel}
|
||||
${TARGET_OBJECT_FILES_generated_MinSizeRel}
|
||||
|
@ -11,8 +11,6 @@ check_files("${RunCMake_TEST_BINARY_DIR}"
|
||||
|
||||
${TARGET_OBJECT_FILES_generatorobj_Release}
|
||||
|
||||
${TARGET_OBJECT_FILES_emptyobj_Release}
|
||||
|
||||
EXCLUDE
|
||||
${TARGET_OBJECT_FILES_generator_Debug}
|
||||
${TARGET_OBJECT_FILES_generated_Debug}
|
||||
@ -21,6 +19,7 @@ check_files("${RunCMake_TEST_BINARY_DIR}"
|
||||
${TARGET_OBJECT_FILES_emptyobj_Debug}
|
||||
|
||||
${TARGET_OBJECT_FILES_generated_Release}
|
||||
${TARGET_OBJECT_FILES_emptyobj_Release}
|
||||
|
||||
${TARGET_OBJECT_FILES_generator_MinSizeRel}
|
||||
${TARGET_OBJECT_FILES_generated_MinSizeRel}
|
||||
|
@ -12,8 +12,6 @@ check_files("${RunCMake_TEST_BINARY_DIR}"
|
||||
|
||||
${TARGET_OBJECT_FILES_generatorobj_Debug}
|
||||
|
||||
${TARGET_OBJECT_FILES_emptyobj_Debug}
|
||||
|
||||
${TARGET_FILE_generator_Release}
|
||||
${TARGET_OBJECT_FILES_generator_Release}
|
||||
|
||||
@ -30,6 +28,7 @@ check_files("${RunCMake_TEST_BINARY_DIR}"
|
||||
|
||||
EXCLUDE
|
||||
${TARGET_OBJECT_FILES_generated_Debug}
|
||||
${TARGET_OBJECT_FILES_emptyobj_Debug}
|
||||
|
||||
${TARGET_OBJECT_FILES_generator_MinSizeRel}
|
||||
${TARGET_OBJECT_FILES_generated_MinSizeRel}
|
||||
|
Loading…
Reference in New Issue
Block a user