linking to kde4support (Re: KF5 Update Meeting Minutes 2013-w27)

Alex Merry kde at randomguy3.me.uk
Fri Jul 5 11:22:20 UTC 2013


On 04/07/13 22:44, David Faure wrote:
> diff --git a/src/plasmapkg/CMakeLists.txt b/src/plasmapkg/CMakeLists.txt
> index d2f2427..919dd64 100644
> --- a/src/plasmapkg/CMakeLists.txt
> +++ b/src/plasmapkg/CMakeLists.txt
> @@ -5,7 +5,7 @@ add_executable(plasmapkg
>      plasmapkg.cpp
>  )
>  
> -target_link_libraries(plasmapkg kdeqt5staging plasma)
> +target_link_libraries(plasmapkg kdeqt5staging plasma kde4support)
>  
>  message("INSTALL_TARGETS_DEFAULT_ARGS ${INSTALL_TARGETS_DEFAULT_ARGS}")
> 
> ... gives the error ....
> 
> ld: cannot find -lkde4support

So... most of the FooConfig.cmake files appear to call out to an
equivalent FooTarget.cmake file, which in turn loads something like
FooTarget-debug.cmake, which appears to set target properties telling
cmake where to find the libraries in question.

kde4supportConfig.cmake does not do this.  In fact, it even has an
include line for a targets file commented out.

I guess this could be the reason?

Alex


More information about the Kde-frameworks-devel mailing list