It can be used in component CMakeLists.txt files when adding "weak" dependencies between component. A "weak" dependency from A to B is similar to target_link_libraries(A PRIVATE B), but it gets added only if B is included in the build. Use it instead of specifying B as part of PRIV_REQUIRES when the component can be built (even if with reduced functionality) without component B being available.
28 KiB
28 KiB