silverhammermba / emberb

A guide to Ruby's C API
http://silverhammermba.github.io/emberb
Creative Commons Attribution 4.0 International
212 stars 25 forks source link

Explain how to build an extension with CMake #4

Closed dfyx closed 7 years ago

dfyx commented 9 years ago

What the title says.

silverhammermba commented 9 years ago

I'm curious about why you want to do this. Mkmf is specifically designed for building Ruby extensions on any platform (and I think it's a requirement if you want to make a gem). What do you need cmake for?

dfyx commented 9 years ago

Just curious as there appear to be some extensions that do use cmake.

(Also, I have a cmake-powered project that currently uses libruby in a C++ executable but might soon be transformed into a gem)

silverhammermba commented 9 years ago

Interesting. Can you show me a specific example? I'm having a hard time finding one.

dfyx commented 9 years ago

Sadly I can't remember a specific one but I'm pretty sure there was at least one that had CMake as a compile time dependency. If I can find it again, I'll tell you.