[CMake] how to support compiler option "--md --depend=$(@:%.o=%.d)"?
zou tao
zoutao51 at gmail.com
Thu Sep 6 04:31:20 EDT 2012
Hi,
I use armcc to compile webkit.
It need to support options "--md --depend=$(@:%.o=%.d)" which in rules
.c.o:
$(CC) $(CFLAGS) -o $@ $<
will be replaced its name to object name to create right dependence file.
e.g compile test.c
then before compiling, it will be changed into "--md --depend=test.d".
I use add_definitions to add the options. But it's not replaced in .c.o
rules.
Just passing to compiler armcc directly.
Any suggestions? Should I need to define my own CMAKE_C_COMPILE_OBJECT?
I tried to search over internet, but can't find the answer.
Thanks for your help.
B.R,
Tao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120906/af8fc61d/attachment.htm>
More information about the CMake
mailing list