cmake_minimum_required(VERSION 2.8) project(foo C) message(STATUS "CC=${CMAKE_CROSSCOMPILING} CSN=${CMAKE_SYSTEM_NAME}") add_executable(fo foo.c)