-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Failed to link to PCL (Property INTERFACE_LINK_LIBRARIES may not contain link-type keyword "optimized".) #7660
Comments
Unfortunately CI is not doing this basic step which is so important also IMHO |
Both doing a simple linking check and running (at least some of) the unit tests are on the roadmap but haven't been implemented yet. |
Why is the issue closed? The pcl port is still broken. |
VCPKG wrappers which might need fixing:
From what I found in the ports folder this seems like a PCL issue which probably sets somewhere the property |
Related upstream issues:
In particular, a valid workaround seems to be provided in PointCloudLibrary/pcl#2989 (comment) (but I did not tested it directly). |
The offending keywork apparently come from the zlib library (included via the vtk library), see:
|
@traversaro Please give the full line information. Also setting a variable like so
is perfectly fine CMake and to be expected from a _LIBRARIES variables. |
@Neumann-A I am preparing a patch for the PCL issue: I am fully aware of your comment, and how |
Currently, I am having a problem linking to pcl that is built by vcpkg.
Host Environment
To Reproduce
vcpkg install pcl
Create two files to simulate the downstream user
CMakeLists.txt
mycpp.cpp
when I do
cmake -A x64 ..
it shows the below errorHow can I solve this?
Does the CI in vcpkg check simple downstream link and see whether it's successful? If it's just checking builds and unit tests, can we add a simple downstream linking check to avoid future problems like this?
The text was updated successfully, but these errors were encountered: