Hi,<div><br></div><div>I used to use CMake v2.6 on Cygwin-1.7 to build codes for MIPS.</div><div>It works well and my scripts like:</div><div><br></div><div>----- CMakeLists.txt start -----</div><div><div><br></div><div>CMAKE_MINIMUM_REQUIRED(VERSION 2.6)</div>
<div>INCLUDE(CMakeForceCompiler)</div><div><br></div><div>SET(CMAKE_SYSTEM_NAME Generic)</div><div><br></div><div># specify the cross compiler</div><div>CMAKE_FORCE_C_COMPILER(/cygdrive/c/sde6/bin/sde-gcc GNU)</div><div>CMAKE_FORCE_CXX_COMPILER(/cygdrive/c/sde6/bin/sde-g++ GNU)</div>
<div><br></div><div># where is the target environment</div><div>SET(CMAKE_FIND_ROOT_PATH /cygdrive/c/sde6)</div><div><br></div><div># search for programs in the build host directories</div><div>SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)</div>
<div><br></div><div># for libraries and headers in the target directories</div><div>SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)</div><div>SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)</div></div><div><br></div><div>----- CMakeLists.txt end -----</div>
<div><br></div><div>However,</div><div>I upgrade cmake packeages to 2.8.2 few days ago.</div><div>It showes error after typing &quot;cmake .&quot;</div><div><br></div><div>----- Error start -----</div><div>CMake Error: your C compiler: &quot;/cygdrive/c/sde6/bin/sde-gcc&quot; was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.</div>
<div>CMake Error: your CXX compiler: &quot;/cygdrive/c/sde6/bin/sde-g++&quot; was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.</div><div>----- Error end -----</div><div><br></div><div>Could anyone kindly give me some hints?</div>
<div><br></div><div>Best regards,</div><div>Sam</div><div><br></div><div><br></div>