Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: cannot configure with ninja #252

Open
carlo-bramini opened this issue Jun 17, 2023 · 1 comment
Open

CMake: cannot configure with ninja #252

carlo-bramini opened this issue Jun 17, 2023 · 1 comment

Comments

@carlo-bramini
Copy link
Contributor

carlo-bramini commented Jun 17, 2023

When you execute CMake, if you add -G Ninja for using ninja instead of GNU Make, this error is printed on the console:

CMake Error:
  Running

   '/usr/bin/ninja.exe' '-C' '/home/carlo/z' '-t' 'recompact'

  failed with:

   ninja: error: build.ninja:4847: multiple rules generate src/Plugin/AlienWah/libZynAlienWah.dll.a

Perhaps, this happens because this line:

set_target_properties(ZynAlienWah_lv2 PROPERTIES OUTPUT_NAME "ZynAlienWah")

and this line:

set_target_properties(ZynAlienWah_vst PROPERTIES OUTPUT_NAME "ZynAlienWah")

have the same output name. The same effect could be seen on other plugins.
I tested this issue on CYGWIN and MinGW, but I think it should be possible to reproduce it also on Linux.

EDIT: tested on Debian, CMake completed the configuration process successfully and it didn't raise the error that happens on Windows.

@fundamental
Copy link
Member

I didn't see the edit until just now, but I can confirm this is an issue that does not occur with Linux given ninja version 1.10.2 and cmake version 3.20.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants