[CMake] cross compiler flags

Alexander Neundorf a.neundorf-work at gmx.net
Mon Nov 19 13:38:10 EST 2007


On Monday 19 November 2007, Dave Milter wrote:
> Usually, I use such construction to set cmake flags:
> SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall
>
> but when I use "-DCMAKE_TOOLCHAIN_FILE" option this construction for
> some reason does not work,
> actually, if I run "make VERBOSE=1" compiler comand does not contain
> flags at all, except "-c" "-o" and so on.

Hmm, it should work.
Can you create a testcase ?

Alex


More information about the CMake mailing list