You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
CMake Error at CMakeLists.txt:4 (find_package):
Could not find a configuration file for package "graphicsmagick" that is
compatible with requested version "1.3.43".
The following configuration files were considered but not accepted:
~/project_conan/build/Debug/generators/graphicsmagick-config.cmake, version: unknown
I see there are files graphicsmagick-config-version.cmake (with set(PACKAGE_VERSION "1.3.43")) and build/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
The text was updated successfully, but these errors were encountered:
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:
The 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.
If you want to use 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.
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
The text was updated successfully, but these errors were encountered: