Open nikoladsp opened 2 months ago
Hi @nikoladsp, Thanks for the question. I can see that you are running some commands manually, but that should not be necessary using the plugin. You just need to use the UI of CLion and Conan will be launched automatically. A couple of things:
graphicsmagick
package will not appear in the list of packages because there you will only have a list of packages that come from Conan Center.graphicsmagick
just go to the generated conandata.yml
remove the comment on the beginning of the file and add your requirement (see screenshot for example)Also, please check the docs, you may start from a simple case, check that it works and then add your package for a simple example and see if everything goes fine.
Hope this helps.
Hi, I am trying to make this plugin works with
CLion 2024.1.2
. I have a package made by conan that is private, and built locally - so it only exists in my local cache. I failed to figure out how to configure this plugin in CLion in this case. It does not detect my package from cache. Moreover, I am not sure how to configure CMake profiles so I can build and debug using CLion.What I tried from console is:
Above commands work. They produces executable that link appropriate GraphicsMagick
1.3.43
(instead of system's1.3.42
).But if I try to use from CLion it constantly refuses to find it. I tried adding CMake options to Debug profile:
The output of the build is:
I see there are files
graphicsmagick-config-version.cmake
(withset(PACKAGE_VERSION "1.3.43")
) andbuild/Debug/generators/graphicsmagick-config.cmake
So in the end I am unsure did I do something wrong when building Conan package (asked this on their repo already), is there some problem in this plugin or CLion itself?
Thank you kindly