-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Major deviations from standard CMake Find Behaviour #12266
Comments
The question is basically why you are in general deviating so much from standard CMake find modes when it gets to variables. |
Hi @jpfeuffer - thanks for reporting this issue. I have tried the following in a
against a Qt installed from Conan Center with the Would you be able to provide more details about:
Please note that we attempt to follow CMake guidelines and discourage the use of legacy variables defined as part of As for variables, I'm not entirely sure there is an actual standard with regards to naming variables in find modules or config files, or at least not one that is followed by everyone. Reading this document, for a package called
So if |
Maybe Qt is wrong but they definitely do not follow this scheme: Also, you are not defining MAJOR MINOR VERSION (at least in Boost, whose config files did before. It is also recommended [not required] by CMake). And you are missing the (IMPORTED)_LOCATION property in the targets. My CMake scripts do not work anymore. They depend on copying library files but this property is not there. THIS is actually a real blocker since I did not find a replacement or alternative property for this. For all others, I added ugly conditionals/parsed the versions myself. |
Any idea how I could proceed without the "LOCATION" properties while you decide on/implement a fix? |
After further investigation, you also miss the VERY important library type for your imported libraries! |
This A similar issue was mentioned for the boost package in conan-io/conan-center-index#11085. |
This is sad, I rely on |
the In any case, the new Also, to clarify it, it is perfectly fine to use the package So I am closing this ticket as solved by the new For an updated discussion and possible features regarding the |
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
IF (NOT Qt5Core_FOUND) message(FATAL_ERROR "not found")
in your CMake codeLogs (Executed commands with output) (Include/Attach if Applicable)
not found
The text was updated successfully, but these errors were encountered: