Revision a6b09085715d0d7f299e9ca76a4835ce5f5acfaf authored by Brad King on 09 March 2015, 13:25:16 UTC, committed by Brad King on 09 March 2015, 17:36:46 UTC
Simply check for whether the local generator has a parent instead of depending on a string comparison of directory names.
1 parent 99575c9
CMakeLists.txt
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)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...