title: How can I cross compile ctest?
body: <p>I want to use ctest on arm target system.
  So tried to arm-crosscompile cmake(which includes ctest) but only failed.
  I built arm cross compiler with cross-ng as guided in the url below:</p>
  
  <p><a href="http://www.kitware.com/blog/home/post/426" rel="nofollow">http://www.kitware.com/blog/home/post/426</a></p>
  
  <p>My test arm machine is raspberry-pi. So the guide above helped me get arm cross compiler.</p>
  
  <p>With this arm cross compiler I successfully built and tested helloworld!</p>
  
  <p>But, with this arm cross compiler I fail to compile cmake-2.8.12.2 as shown below.</p>
  
  <blockquote>
    <p>mkdir -p /somepath/bin/cmake</p>
    
    <p>cd /somepath/bin/cmake</p>
    
    <p>cmake -DCMAKE_TOOLCHAIN_FILE=/home/me/bin/RaspberryPi/CMakeToolChain/Toolchain-RaspberryPi.cmake /somepath/src/cmake-2.8.12.2</p>
  </blockquote>
  
  <p>With this way, I get errors but cmake, ctest and cpack are built. And they are arm binaries.
  But when I scp ctest into my Raspberry-Pi and test, it fails with the message below:</p>
  
  <blockquote>
    <p>./ctest: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.15' not
    found (required by ./ctest)</p>
  </blockquote>
  
  <p>Let me post my toolchain file.</p>
  
  <blockquote>
    <p>SET(CMAKE_SYSTEM_NAME Linux)</p>
    
    <p>SET(CMAKE_SYSTEM_VERSION 1)</p>
    
    <p>SET(CMAKE_C_COMPILER
    /home/me/local/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc)</p>
    
    <p>SET(CMAKE_CXX_COMPILER
    /home/me/local/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-g++)</p>
    
    <p>SET(CMAKE_FIND_ROOT_PATH
    /home/me/local/x-tools/arm-unknown-linux-gnueabi)</p>
    
    <p>SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
    SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
    SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)</p>
  </blockquote>
  
  <p>Could someone guide me how to get arm version of ctest?</p>