Open kylef opened 4 years ago
I’ve spent a bit of time on this, the underlying problem is that the drafter-cli target has an output name of drafter
(the binary name is drafter). We also have a custom aggregate target called drafter
which runs the targets drafter-cli
, libdrafter
etc at the same time.
Various package managers script (homebrew, aur, dockerfiles) use make drafter
(thus this is expected and depended upon behaviour). make drafter
builds everything needed for make install
to work.
While this works fine with the makefile generator, under ninja both these parts cause different targets with the same name. This also results in circular reference because the drafter aggregate target which depends on drafter-cli (which ninja calls drafter). This problem manifests differently in newer versions of CMake.
I don’t see an easy solution.
Homebrew is now over to a full CMake build