[Cmake-commits] [cmake-commits] hoffman committed ToolchainTest.cmake.in 1.6 1.7

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Sep 8 20:21:37 EDT 2008


Update of /cvsroot/CMake/CMake/Tests/CMakeTests
In directory public:/mounts/ram/cvs-serv25148

Modified Files:
	ToolchainTest.cmake.in 
Log Message:
BUG: fix test to work with new restrictions that cross compiling must be on


Index: ToolchainTest.cmake.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CMakeTests/ToolchainTest.cmake.in,v
retrieving revision 1.6
retrieving revision 1.7
diff -C 2 -d -r1.6 -r1.7
*** ToolchainTest.cmake.in	2 Jul 2007 17:29:36 -0000	1.6
--- ToolchainTest.cmake.in	9 Sep 2008 00:21:35 -0000	1.7
***************
*** 6,10 ****
  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}")
--- 6,9 ----
***************
*** 63,66 ****
--- 62,68 ----
  
  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)



More information about the Cmake-commits mailing list