Building native extensions fails when CMAKE_GENERATOR is non-default
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- cmake, ruby
- Domain
- build-system
Research direction
Start in extconf.rb and reproduce the failure with CMAKE_GENERATOR=Ninja during rugged installation. Check how the native extension currently invokes gmake or make, then verify the build works through CMake’s build command with a non-default generator. Done means installation succeeds without clearing CMAKE_GENERATOR.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- C
- Stars
- 2.3k
- Forks
- 293
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libgit2/rugged
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
LFS support? Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
hapostgres/pg_auto_failover#1190 ·