Other pb with cmake

Laurent Montel montel at kde.org
Thu Mar 16 09:49:17 CET 2006


Hi,
I use snapshot from yesterday and I have this error:
kdegames:
kdegames/CMakeLists.txt :
set(libksirtetbase_SRCS
    ${CMAKE_SOURCE_DIR}/libksirtet/base/kzoommainwindow.cpp
    ${CMAKE_SOURCE_DIR}/libksirtet/base/main.cpp
    ${CMAKE_SOURCE_DIR}/libksirtet/base/field.cpp
    ${CMAKE_SOURCE_DIR}/libksirtet/base/piece.cpp
    ${CMAKE_SOURCE_DIR}/libksirtet/base/highscores.cpp
    ${CMAKE_SOURCE_DIR}/libksirtet/base/factory.cpp
    ${CMAKE_SOURCE_DIR}/libksirtet/base/gtetris.cpp
    ${CMAKE_SOURCE_DIR}/libksirtet/base/board.cpp
    ${CMAKE_SOURCE_DIR}/libksirtet/base/settings.cpp
    ${CMAKE_SOURCE_DIR}/libksirtet/base/inter.cpp
)

kdegames/klickety/CMakeList.txt
set(klickety_SRCS ${libksirtetbase_SRCS}
   piece.cpp
   board.cpp
   field.cpp
   highscores.cpp
   main.cpp )

And I am this error:
CMake Error: Attempt to add a custom rule to output 
"/home/lmontel/kde-4.0/kde4/cmake/snapshot/kdegames/klickety/board.moc" which 
already has a custom rule.
CMake Error: Attempt to add a custom rule to output 
"/home/lmontel/kde-4.0/kde4/cmake/snapshot/kdegames/klickety/main.moc" which 
already has a custom rule.

So he will want to generate two file.moc with same name in same directory.
Perhaps we must generate them into own directory.

Regards


More information about the Kde-buildsystem mailing list