Re: [CMake] Error if CMAKE_SYSTEM_NAME is placed wrongly

2016-05-18 Thread Chuck Atkins
> when I place set(CMAKE_SYSTEM_NAME Generic) after cmake_minimum_required() > and project() and set(VERSION_MAYOR/MINOR), > CMAKE_SYSTEM_NAME really shouldn't be in a CMakeLists.txt file at all. It should instead be in a stand alone toolchain file defining your various cross-compiling

[CMake] Error if CMAKE_SYSTEM_NAME is placed wrongly

2016-05-18 Thread Frank Brütting
Hi, when I place set(CMAKE_SYSTEM_NAME Generic) after cmake_minimum_required() and project() and set(VERSION_MAYOR/MINOR), incremental „make“s still work, but once the build directory is cleared and „cmake ..“ is invoked, „make“ always leads to the error „avr-gcc: error: unrecognized command line