-
Notifications
You must be signed in to change notification settings - Fork 1k
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
cmake_find_package_multi and version information #5888
Comments
From the CMake docs I read that we should be generating a
In case I could guess we should only fill them with Sounds good? |
Could you try manually to generate the file setting these vars and letting us know if it works that way? |
as I can see ITK uses version argument: https://github.com/InsightSoftwareConsortium/ITK/blob/8fe66a3f1f5366e656b77773b4db3f349af6d644/Modules/ThirdParty/Eigen3/CMakeLists.txt#L56
|
I think that my original error was triggered by this file: https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/ThirdParty/Eigen3/itk-module-init.cmake But it would make sense that the one I'm experiencing now is linked to the one @SSE4 linked. I'm going to try to the proposed solution and report, but I think that it's the right thing to do :) |
Then I think it is more a feature than a bugfix. With high priority, I would say. In the meantime, you could try to patch (from the recipe) that line to remote the version requirement from that sentence. (That by the way, in the scope of a package manager, makes no sense, because the version resolution is a package manager thing, not a build system thing) |
contents of
|
I was about to copy-paste the very same file here: exporting it from the recipe directory made the version test pass correctly, so I guess that it would be enough for Now I have another issue because it looks for |
Also if |
No, we have a new |
#6025 (comment) by @liarokapisv suggests unban Version.cmake files from CCI or to generate them automatically. |
As I commented, it makes sense to generate the files in the |
@SSE4 do you want to work on this for the next release? |
@lasote yes, sure |
To help us debug your issue please explain:
I was writing a Conan recipe for ITK 5 which uses Eigen3 and requires it through the following CMake line (see the corresponding issue for more background information):
find_package(Eigen3 REQUIRED CONFIG)
Long story short, after having bypassed a recipe-specific issue, I managed to get CMake to find the right CMake config file generated with the Conan generator
cmake_find_package_multi
, but the configuration step eventually failed with the following error:The recipe I used was that for Eigen 3.3.7, so Conan has the version information, but it seems that this information wasn't propagated to the files generated by
cmake_find_package_multi
, triggering the error above.Would it be possible to forward the version information to the files generated by this generator so that examples like the one above work?
Conan version: 1.19.1
CMake version: 3.10.2
The text was updated successfully, but these errors were encountered: