diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-09-09 00:21:35 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-09-09 00:21:35 (GMT) |
commit | 1a3502d66a0679cc839e08ce88981620f8100782 (patch) | |
tree | b3d085032aafa54633ad34dae2a33aeff6231420 /Tests | |
parent | 771f127fe9190376ede0c7e4c1b9a81dd4033386 (diff) | |
download | CMake-1a3502d66a0679cc839e08ce88981620f8100782.zip CMake-1a3502d66a0679cc839e08ce88981620f8100782.tar.gz CMake-1a3502d66a0679cc839e08ce88981620f8100782.tar.bz2 |
BUG: fix test to work with new restrictions that cross compiling must be on
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeTests/ToolchainTest.cmake.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/CMakeTests/ToolchainTest.cmake.in b/Tests/CMakeTests/ToolchainTest.cmake.in index 90c45d0..e4a2e48 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) |