kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #01519
Re: xpm todo item, libkicad?
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
"Richard A Burton" <richardaburton@...>
-
Date:
Mon, 5 May 2008 09:25:38 +0100
-
In-reply-to:
<481E4EA7.6050804@...>
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