conan-clion-plugin
conan-clion-plugin copied to clipboard
Allow for arbitrary build directory
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).
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.
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?