Skip to content

Failed to build with Ninja and CMake 3.21.1 #941

@ouuan

Description

@ouuan

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

ninja: error: build.ninja:834: multiple rules generate ui/ui_appwindow.h [-w dupbuild=err]

Or, if passing -w dupbuild=warn to Ninja:

ninja: warning: multiple rules generate ui/ui_appwindow.h. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
ninja: warning: multiple rules generate /home/ouuan/GitHub/cpeditor/build/ui/ui_appwindow.h. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
ninja: error: dependency cycle: cpeditor_autogen/timestamp -> cpeditor_autogen_timestamp_deps -> CMakeFiles/cpeditor_autogen_timestamp_deps -> libdiff_match_patch.a -> CMakeFiles/diff_match_patch.dir/diff_match_patch_autogen/mocs_compilation.cpp.o -> cmake_object_order_depends_target_diff_match_patch -> diff_match_patch_autogen -> ui/ui_appwindow.h -> cpeditor_autogen/timestamp

Expected Behavior

It builds.

Steps To Reproduce

  1. Update packages on Arch Linux.
  2. Try to build CP Editor.

CP Editor Version

f7df7eb

OS

Arch Linux

Are you willing to contribute to this?

  • I'm ready to fix this (and will open a PR soon)
  • I'd like to have a try (with the help of the maintainers)
  • No, thanks

Anything else?

Until this is fixed, Arch Linux users need to downgrade CMake to 3.21.0 or use make instead of Ninja in order to build CP Editor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions