summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-09-12 13:29:23 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2008-09-12 13:29:23 -0400
commitdff6df3abfa667373070c1f8a4bf7227991b3796 (patch)
tree3d26349061a55689e55d7224dcf0c6fe8d6dda34
parentf99fa86c6c7801e4d3b8b714e2a1ac464b8d9a14 (diff)
downloadcmake-dff6df3abfa667373070c1f8a4bf7227991b3796.tar.gz
ENH: merge in from main tree
-rw-r--r--Tests/CMakeTests/ToolchainTest.cmake.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/CMakeTests/ToolchainTest.cmake.in b/Tests/CMakeTests/ToolchainTest.cmake.in
index 90c45d0160..e4a2e48133 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)