Other pb with cmake
Brad King
brad.king at kitware.com
Thu Mar 16 18:59:42 CET 2006
Laurent Montel wrote:
> 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.
I suspect this is a problem with the kde macros used to create the
custom commands for moc-ing. Alex?
-Brad
More information about the Kde-buildsystem
mailing list