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
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to