Problem with cmake+kde

Brad King brad.king at kitware.com
Mon Mar 13 21:38:00 CET 2006


Laurent Montel wrote:
> Into kdepim/akregator:
> 
> find -name article.cpp
> ./src/librss/article.cpp
> ./src/article.cpp
> 
> set(librsslocal_SRCS
>     ${CMAKE_SOURCE_DIR}/akregator/src/librss/article.cpp
>     ${CMAKE_SOURCE_DIR}/akregator/src/librss/document.cpp
>     ${CMAKE_SOURCE_DIR}/akregator/src/librss/image.cpp
>     ${CMAKE_SOURCE_DIR}/akregator/src/librss/textinput.cpp
>     ${CMAKE_SOURCE_DIR}/akregator/src/librss/tools_p.cpp
>     ${CMAKE_SOURCE_DIR}/akregator/src/librss/loader.cpp
>     ${CMAKE_SOURCE_DIR}/akregator/src/librss/enclosure.cpp
>     ${CMAKE_SOURCE_DIR}/akregator/src/librss/category.cpp
>     )
> 
> set(akregatorprivate_LIB_SRCS ${librsslocal_SRCS}
>    articlefilter.cpp
>    aboutdata.cpp
>    trayicon.cpp
>    article.cpp
>    feed.cpp
> 
> pwd:
> kdepim/akregator/src
> 
> Warning: Source file "article.cpp" is listed multiple times for target 
> "akregatorprivate"
> 
> I use cmake - 2.3.3-0.20060210

Okay, the difference between this and your original example is that the 
subdirectory source is specified by a full path instead of a relative 
path.  I've fixed the problem in CVS CMake.

-Brad


More information about the Kde-buildsystem mailing list