conan-clion-plugin icon indicating copy to clipboard operation
conan-clion-plugin copied to clipboard

Allow for arbitrary build directory

Open massenz opened this issue 4 years ago • 2 comments

Currently the plugin "force assumes" the build directory to be the default CLion cmake-build-debug and uses it in the invocation via the if flag:

/usr/local/bin/conan install /Users/marco/Development/gossip -if=/Users/marco/Development/gossip/cmake-build-debug -pr=default

However, one can change the build folder in CLion (I personally detest that, and use build everywhere; also because my build scripts use that one): the Conan plugin does not allow that to be configured, or even overridden (in the settings page).

Specifying again the -if in the Settings causes an error:

conan install: error: -if can only be specified once

The plugin should be smart enough to figure out CLion build folder, and use that one instead (or, at a very minimum, allow the user to customize that).

massenz avatar Mar 04 '20 17:03 massenz

Sorry about that. One way around this at the moment is to create a new cmake profile in clion settings with the different build directory, and then profile match with conan.

Lawrencemm avatar Oct 14 '20 04:10 Lawrencemm

Hello, I've set the build directory in my CMake Profile in Clion settings, however Conan still seems to use the same if settings, with the build directory inside the project folder.

I've made sure my CMake profile is correctly matched with Conan. Is there something I'm missing?

tux3 avatar Sep 27 '21 13:09 tux3