cmake + cpp file + c file + subdir

Laurent Montel montel at kde.org
Wed Mar 15 16:24:33 CET 2006


On Wednesday 15 March 2006 15:46, Laurent Montel wrote:
> On Wednesday 15 March 2006 15:40, Brad King wrote:
> > Laurent Montel wrote:
> > > Hi,
> > > I have a problem:
> > > I have a card.cpp and card.c into subdir
> > > and cmake said me that it's the same:
> > > (kdegames/kpat)
> > > set(libfcs_SRCS
> > >     ${CMAKE_SOURCE_DIR}/kpat/freecell-solver/alloc.c
> > >     ${CMAKE_SOURCE_DIR}/kpat/freecell-solver/app_str.c
> > >     ${CMAKE_SOURCE_DIR}/kpat/freecell-solver/caas.c
> > >     ${CMAKE_SOURCE_DIR}/kpat/freecell-solver/card.c
> > >     ${CMAKE_SOURCE_DIR}/kpat/freecell-solver/cl_chop.c
> > >     ${CMAKE_SOURCE_DIR}/kpat/freecell-solver/cmd_line.c
> > >     ${CMAKE_SOURCE_DIR}/kpat/freecell-solver/fcs_dm.c
> > >     ${CMAKE_SOURCE_DIR}/kpat/freecell-solver/fcs_hash.c
> > >     ${CMAKE_SOURCE_DIR}/kpat/freecell-solver/fcs_isa.c
> > >     ${CMAKE_SOURCE_DIR}/kpat/freecell-solver/freecell.c
> > > ...
> > > )
> > >
> > > set(kpat_SRCS ${libfcs_SRCS}
> > >    main.cpp
> > >    cardmaps.cpp
> > >    card.cpp
> > >    dealer.cpp
> > >    pwidget.cpp
> > >    pile.cpp
> > >    deck.cpp
> > >    pile_algorithms.cpp
> > >    kings.cpp
> > >    freecell.cpp
> > > ...
> > > )
> > > and cmake said me:
> > > Warning: Source file "card.cpp" is listed multiple times for target
> > > "kpat". Warning: Source file "freecell.cpp" is listed multiple times
> > > for target "kpat".
> >
> > This should be fixed in CVS CMake.  If you are able, please try it to
> > make sure it works before we do the next KDE CMake release.
>
> Where can I get this version ?
> Do you have tarball snapshot ?

I didn't success to rescue cvs 
It's stop in this file
CMake/Utilities/cmzlib/zutil.c
Do you have an idea ?
is it a lock ?
Regards

> Regards
>
> > Thanks,
> > -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