You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to write a Gentoo ebuild for HashLink. This repository has both Makefile and CMakeLists.txt with slight(?) differences, and both of them seems to be ready to use. README describes how to build with make for Linux, but cmake has richer tests and looks better as far as I can see. I don't know which should be used in my ebuild.
Do they have their different intended usages?
The text was updated successfully, but these errors were encountered:
I'm a user not contributor, but I can give my 2 cents. Anyone could just correct me if I'm wrong.
Makefile is a good fit for VM developers/hacks. If offers a quick way working on most Linux distributions + macOS. I can quickly modify the build flags for testing. However, it hardcodes many paths, which breaks on my Manjaro Linux and macOS until I fixed my installation paths.
CMake is a better choice for release purpose. It allows tests, samples, and manages build versions. With the power of CMake, it's also good for possible cross-toolchain or cross-platform development.
Since you use ebuild, I suppose your scenario is we deliver a package installer for a distro. If I were you, I may prefer CMake. Makefile can be used too, if you prefer its simplicity and feel fine to maintain the build path and patch the Makefile (It's quite common in AUR that a pacman package also hosts some patches.)
I'm trying to write a Gentoo ebuild for HashLink. This repository has both
Makefile
andCMakeLists.txt
with slight(?) differences, and both of them seems to be ready to use. README describes how to build withmake
for Linux, butcmake
has richer tests and looks better as far as I can see. I don't know which should be used in my ebuild.Do they have their different intended usages?
The text was updated successfully, but these errors were encountered: