siegelaaron94 / atom-build-cmake

Generate and build cmake projects from within Atom.
MIT License
6 stars 12 forks source link

CMake Error: Could not create named generator -B/home/marcel/CLionProjects/TgCCore-build/Release #48

Closed nitanmarcel closed 4 years ago

nitanmarcel commented 4 years ago

I'm trying to build a release from my library but I'm getting this error: CMake Error: Could not create named generator -B/home/marcel/CLionProjects/TgCCore-build/Release what does this mean?

VivienMrclt commented 4 years ago

This is due to a problem in the command generation I guess. I'm having the same issue. The command executed to build debug is

cmake -G -BSome/Path

The problem is that there is no argument for the parameter G. Thus cmake reads what's following. But the -BSome/Path is not the name of a generator. I don't understand what this the executed command.

nitanmarcel commented 4 years ago

This is due to a problem in the command generation I guess. I'm having the same issue. The command executed to build debug is

cmake -G -BSome/Path

The problem is that there is no argument for the parameter G. Thus cmake reads what's following. But the -BSome/Path is not the name of a generator. I don't understand what this the executed command.

Thanks. But I fixed it by editing the regex which if I remember right it messed up the command detection. Well it's been a long time since I used CLion so I better close this as I don't need help with a fix for the moment :)

Thanks for your answer