Re: [CMake] how to setup cmake_c/xx_flags per toolchain?

2012-01-06 Thread Michael Hertling
On 01/07/2012 12:56 AM, Paweł Sikora wrote: > Hi, > > i'm trying to setup a toolchain file for cross-compilation with target specfic > options and afaics cmake dosen't use flags from such file: > > $ cat CMakeLists.txt > cmake_minimum_required( VERSION 2.8.7 ) > project( test CXX ) > add_executa

[CMake] how to setup cmake_c/xx_flags per toolchain?

2012-01-06 Thread Paweł Sikora
Hi, i'm trying to setup a toolchain file for cross-compilation with target specfic options and afaics cmake dosen't use flags from such file: $ cat CMakeLists.txt cmake_minimum_required( VERSION 2.8.7 ) project( test CXX ) add_executable( main main.cpp ) $ cat CMakeToolchain-x86_64-gnu-linux.tx