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

Building native extensions fails when CMAKE_GENERATOR is non-default #983

Open
Sharparam opened this issue Nov 20, 2024 · 0 comments
Open

Comments

@Sharparam
Copy link

Sharparam commented Nov 20, 2024

The extconf.rb file seems to be hardcoded to use gmake or make under Linux environments. This will fail when a different generator is used, like CMAKE_GENERATOR=Ninja.

CMake projects should use cmake --build to build, which makes CMake automatically use the correct build tool.

(Alternatively, if your project must use a specific kind of build system, you need to override it with the -G parameter when generating the build files.)

As a workaround to install the gem, one can run this:

CMAKE_GENERATOR= gem install rugged
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