queezythegreat / arduino-cmake

Arduino CMake Build system
644 stars 216 forks source link

CMAKE_C_FLAGS and CMAKE_CXX_FLAGS empty if build type empty #20

Closed dlobato closed 12 years ago

dlobato commented 12 years ago

If no build type is selected CMAKE_C_FLAGS and CMAKE_CXX_FLAGS are set empty, regardless the value set on the toolchain file. This causes warnings on compile time like:

delay.h:95:3: warning: #warning "Compiler optimizations disabled; functions from <util/delay.h> won't work as designed"
dlobato commented 12 years ago

It seems to be related with the integration with ros. I'm trying to update the cmake support to 1.0 in rosserial. It seems they have added some lines at the end of the toolchain to force some values.

queezythegreat commented 12 years ago

rosserial has done extensive modifications of Arduino CMake, I don't have a clue what the problem may be. Closing as rosserial is not Arduino CMake.