From 1a3502d66a0679cc839e08ce88981620f8100782 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 8 Sep 2008 20:21:35 -0400 Subject: [PATCH] BUG: fix test to work with new restrictions that cross compiling must be on --- Tests/CMakeTests/ToolchainTest.cmake.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tests/CMakeTests/ToolchainTest.cmake.in b/Tests/CMakeTests/ToolchainTest.cmake.in index 90c45d016..e4a2e4813 100644 --- a/Tests/CMakeTests/ToolchainTest.cmake.in +++ b/Tests/CMakeTests/ToolchainTest.cmake.in @@ -5,7 +5,6 @@ # which will complain that it can"t be used in script mode macro(MARK_AS_ADVANCED) endmacro(MARK_AS_ADVANCED) - # set this to a place where we are allowed to write set(CMAKE_PLATFORM_ROOT_BIN "${CMAKE_CURRENT_BINARY_DIR}") @@ -62,6 +61,9 @@ set(CMAKE_HOST_SYSTEM_PROCESSOR) set(CMAKE_TOOLCHAIN_FILE "${MY_SOURCE_DIR}/DummyToolchain.cmake") include(CMakeDetermineSystem) +# make cmake think we are cross compiling for test to work +set(CMAKE_CROSSCOMPILING TRUE) +set(CMAKE_C_COMPILER_ID "GNU") include(CMakeDetermineCCompiler) include(CMakeDetermineCXXCompiler)