Update cmake.in to reference exported dependencies#98
Conversation
Those are PRIVATE libraries we link against but when consuming the KDUtils or KDGui package we need to have provide a way to find those targets. Change-Id: I66dfd06a813af212fef70f5c33c091c03a9d9193
|
Essentially without this patch I'm getting: [cmake] CMake Error at build/Debug/vcpkg_installed/x64-linux/share/KDUtils/KDUtilsConfigTargets.cmake:60 (set_target_properties): The fundamental issue is that PRIVATE in CMake means "don't propagate to consumers during build", but it doesn't mean "won't be needed by consumers at link time". Even if those PRIVATE dependencies are static libraries, they could become link-time dependencies because:
|
Those are PRIVATE libraries we link against but when consuming the KDUtils or KDGui package from vcpkg we need to have provided a way to find those targets.