Problem with cmake+kde

Laurent Montel montel at kde.org
Mon Mar 13 17:17:51 CET 2006


On Monday 13 March 2006 17:11, Brad King wrote:
> Laurent Montel wrote:
> > -> method to install icons doesn't work when we use make install
> > DESTDIR=<foo>
>
> The development version of CMake in CVS supports renaming files during
> installation so this icon installation method may be fixed when we do
> the next KDE CMake release.

Great.

> > -> there is a pb when we have a file 'foo.cpp' into one directory and we
> > have an other foo.cpp into subdirectory.
> > when I use '
> > set(libsubdir_SRC subdir/foo.cpp)
> > set(lib_SRC foo.cpp ${libsubdir_SRC})
> > cmake said that it's the same file (but it's not the same directory)
>
> I cannot duplicate this problem:
>
>    set(libsubdir_SRC A/foo.cpp)
>    set(lib_SRC foo.cpp ${libsubdir_SRC})
>    add_executable(foo ${lib_SRC})
>
> produces this build log:
>
>    Scanning dependencies of target foo
>    Building CXX object CMakeFiles/foo.dir/foo.o
>    Building CXX object CMakeFiles/foo.dir/A/foo.o
>    Linking CXX executable foo

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

Regards

> -Brad
> _______________________________________________
> Kde-buildsystem mailing list
> Kde-buildsystem at kde.org
> https://mail.kde.org/mailman/listinfo/kde-buildsystem


More information about the Kde-buildsystem mailing list