Replies: 6 comments
-
@dg0yt What do you think? |
Beta Was this translation helpful? Give feedback.
-
It would be nice to write it down.
|
Beta Was this translation helpful? Give feedback.
-
That is the reason why i sometimes use Personal and probably unpopular opinion: |
Beta Was this translation helpful? Give feedback.
-
@Neumann-A did anyone try generating configs based on includes/libs installed? |
Beta Was this translation helpful? Give feedback.
-
I'm not convinced. What the exported config can give is precise transitive usage requirements corresponding to the chosen feature set. This is information which is readily available in the exported information for fairly regular cmake projects. Also, I prefer config packages over find modules. The package form doesn't imply a particular implementation, but it impacts search procedures. Config mode is much more flexible in this regard. And Find modules cannot use However, I would throw away the wrappers. This could be handled by generate Find modules. This would allow more use without putting vcpkg into |
Beta Was this translation helpful? Give feedback.
-
This can't work well unless building in a minimal install tree, and AFAICS it can't handle system package dependencies. (OT) |
Beta Was this translation helpful? Give feedback.
-
While working on some of the ports, I noticed that there are easily missable things in CMake config files including the following.
if(NOT TARGET ...)
should be present in config in order to prevent fatal errors in case of callingfind_package
multiple timesIMPORTED_LOCATION_RELEASE
and/orIMPORTED_LOCATION_DEBUG
properties respectingVCPKG_BUILD_TYPE
valuesrelease
,debug
and<empty string>
(please correct me if I'm wrong)IMPORTED_CONFIGURATIONS
propertyfind_path
to find include dirsfind_dependency
overfind_package
configure_file
is used,unofficial-<port>-config.cmake.in
should be used as a file namePorts for reference:
Please feel free to correct me and/or suggest more.
I think such rules may be added to the PR review checklist. Maybe even to the port linter.
Beta Was this translation helpful? Give feedback.
All reactions