-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[package] Qt/5.15.2: Cmake doesn't export the versionless targets #6459
Comments
This also affects Qt6 |
I think conan is not able to generate targets in several namespaces : https://docs.conan.io/en/latest/reference/generators/cmake_find_package.html |
I forgot to answer to this thread: you can emulate any target with a custom CMake module created at Most recipes using this trick create non namespaced targets, but you can perfectly create custom namespaced targets. conan-center-index/recipes/openexr/2.x/conanfile.py Lines 98 to 226 in e1d9d8e
|
Hi there, I'm closing this issue as this recipe has suffer plenty of modifications since this issue was reported. Happy coding 🐸 |
@perseoGI I think it should not be closed, this issue has not been fixed. |
I've opened #25198 |
Okey thanks for opening an updated issue! |
It's not an updated issue but a PR fixing this issue. |
My sorry, really early in the morning hehe, thanks for your contribution @SpaceIm |
This is important for Qt5 / 6 compatibility.
https://doc-snapshots.qt.io/qt6-dev/cmake-qt5-and-qt6-compatibility.html
CMake Error at cmake/AddDualTargetLibrary.cmake:61 (add_library):
Target "tet_exec" links to target "Qt::Gui" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:5
Steps to reproduce (Include if Applicable)
Create a Qt5 project for cmake.
Use the versionless Target:
add_executable(test main.cpp)
target_link_libraries(test Qt::Core)
The text was updated successfully, but these errors were encountered: