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 with ninja build system can not build tests/examples/benchmarks #157

Open
emmenlau opened this issue Mar 4, 2020 · 0 comments
Open

Comments

@emmenlau
Copy link

emmenlau commented Mar 4, 2020

The very nice cmake integration has still a small impediment with the ninja build tool. I'm just collecting this here so that people are aware of it. There are a few identical executable names shared between the tests, the examples and the benchmarks. For example there is reduce in examples and testsuite. The ninja build tool is not able to handle this. And it seems since ninja 1.10, its not possible to easily work around this problem with -w dupbuild=warn anymore.

As a workaround, users can just not build this block of executables, i.e. by disabling tests. For a proper solution, I assume that the individual executables would need to have unique target names, maybe like test-reduce vs example-reduce?

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

1 participant