radareorg / r2pm

Radare2 cross platform package manager
GNU Lesser General Public License v3.0
34 stars 12 forks source link

r2pm doesn't works if Cmake's default generator isn't make #73

Open GiuseppeCesarano opened 4 years ago

GiuseppeCesarano commented 4 years ago

Describe the issue
r2pm doesn't build packages if the cmake's default generator isn't make.

How to reproduce? Simply setting cmake's default generator to anything else than makefiles. Eg: Having CMAKE_GENERATOR=Ninja

Expected behavior Still building the file using the default generator.

Possible fix Using cmake --build . instead of make or forcing cmake to use make

qbarrand commented 4 years ago

Hi @GiuseppeCesarano. I must confess that I'm a bit puzzled here - r2pm does not call cmake itself, it merely executes the commands from a manifest. Can you explain precisely how you hit that problem?

GiuseppeCesarano commented 4 years ago

Yes. I was trying to install r2ghidra-dec with the suggested command r2pm -i r2ghidra-dec. Somewhere, CMake is called, and build files are generated, than later make is called too on the generated files, but i had the default CMake generator to Ninja so the make call failed.