On Friday 25 January 2008 10:03:27 Vandenbroucke Sander wrote:
> Hi,
>
> I'm working on a new port of OROCOS.
> How are the compiler flags determent? CMake does not add any compiler
> flags.
When you use 'ccmake' go to the CMAKE_BUILD_TYPE option. The help 'h' of this
option says:
Current option is: CMAKE_BUILD_TYPE
Help string for this option is: Build type: None (Use CMAKE_C_FLAGS and
CMAKE_CXX_FLAGS), RTT (Recommended), Release, Debug,
RelWithDebInfo, MinSizeRel.
When you fill in RTT, the flags are stored in CMAKE_CXX_FLAGS_RTT and
CMAKE_C_FLAGS_RTT . When you have 'None', it uses CMAKE_CXX_FLAGS
and CMAKE_C_FLAGS etc.
CMake - Compilerflags.
On Friday 25 January 2008 10:03:27 Vandenbroucke Sander wrote:
> Hi,
>
> I'm working on a new port of OROCOS.
> How are the compiler flags determent? CMake does not add any compiler
> flags.
When you use 'ccmake' go to the CMAKE_BUILD_TYPE option. The help 'h' of this
option says:
Current option is: CMAKE_BUILD_TYPE
Help string for this option is: Build type: None (Use CMAKE_C_FLAGS and
CMAKE_CXX_FLAGS), RTT (Recommended), Release, Debug,
RelWithDebInfo, MinSizeRel.
When you fill in RTT, the flags are stored in CMAKE_CXX_FLAGS_RTT and
CMAKE_C_FLAGS_RTT . When you have 'None', it uses CMAKE_CXX_FLAGS
and CMAKE_C_FLAGS etc.
See this wiki page for the full text:
And this text for cross compiling:
Peter
>
> Kind regards,
> Sander.