Hi everybody,

I'm trying to write a toolchain for a specific C compiler. Within the .cmake
file, I specify the CMAKE_SYSTEM_NAME as 'Generic' and define the C compiler
(something like h8300-elf-gcc).
I define other compilers (ar and ld) and set some CMAKE_C_FLAGS.

But when I want to generate the project, the CMAKE_C_FLAGS seems to be
empty. I have to run a second time the cmake command line in order to have
flags in generated makefile.

I also try to only define CMAKE_SYSTEM_NAME and CMAKE_C_COMPILER within the
toolchain and set CMAKE_C_FLAGS in a file placed in cmake's Platform install
directory. I guess it doesn't load this file as I put a message() which are
not displayed.

Am I doing something wrong ?
Thank you for help.
--

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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to