mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 05:50:42 +00:00
14 lines
296 B
CMake
14 lines
296 B
CMake
cmake_minimum_required (VERSION 2.6)
|
|
PROJECT(CrossCompile)
|
|
|
|
UNSET(run_result CACHE)
|
|
|
|
#Simulate the cross compile condition
|
|
SET(CMAKE_CROSSCOMPILING ON)
|
|
|
|
ADD_EXECUTABLE(CrossCompile main.c)
|
|
|
|
TRY_RUN(run_result compile_result
|
|
${CrossCompile_BINARY_DIR}
|
|
${CrossCompile_SOURCE_DIR}/main.c)
|