← Back to team overview

kicad-developers team mailing list archive

Re: xpm todo item, libkicad?

 

2008/5/5 Dick Hollenbeck <dick@...>:
> > bitmaps/CMakeLists.txt:
> > -------------------------------
> > add_definitions(-DXPMMAIN)
> > FILE(GLOB BITMAP_SRCS *.xpm)
> > SET_SOURCE_FILES_PROPERTIES(${BITMAP_SRCS} PROPERTIES LANGUAGE CXX
> > COMPILE_FLAGS "-x c++")
> > add_library(bitmaps ${BITMAP_SRCS})
> > SET_TARGET_PROPERTIES(bitmaps PROPERTIES LINKER_LANGUAGE CXX)
> > -------------------------------
> >
> OK. But which of the above statements is giving cmake 2.4 grief?

> i.e. what is the bug exactly?

Duff make files get produced, containing a lot of duplicate make
targets. Appears to be malformed target names causing the duplication.
Probably due to not understanding the target file type correctly (also
noticed it compiles the files without a .o extension), so the line
above that isn't doing it's job correctly would probably be the
SET_SOURCE_FILES_PROPERTIES where we tell cmake what kind of files
they are.

If the same thing is run with files ending cpp rather than xpm it
works fine, so the auto file type detection seems to have different
results to manual file type setting. Could be raised with with the
cmake developers, if I get the time.

Richard.






References