[CMake] Can not found CMAKE_C_COMPILER after upgrading to v2.8 on Cygwin

Ho Sam samho5888 at gmail.com
Fri Oct 8 01:02:26 EDT 2010


Hi,

I used to use CMake v2.6 on Cygwin-1.7 to build codes for MIPS.
It works well and my scripts like:

----- CMakeLists.txt start -----

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
INCLUDE(CMakeForceCompiler)

SET(CMAKE_SYSTEM_NAME Generic)

# specify the cross compiler
CMAKE_FORCE_C_COMPILER(/cygdrive/c/sde6/bin/sde-gcc GNU)
CMAKE_FORCE_CXX_COMPILER(/cygdrive/c/sde6/bin/sde-g++ GNU)

# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /cygdrive/c/sde6)

# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)

# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

----- CMakeLists.txt end -----

However,
I upgrade cmake packeages to 2.8.2 few days ago.
It showes error after typing "cmake ."

----- Error start -----
CMake Error: your C compiler: "/cygdrive/c/sde6/bin/sde-gcc" was not found.
  Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "/cygdrive/c/sde6/bin/sde-g++" was not
found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
----- Error end -----

Could anyone kindly give me some hints?

Best regards,
Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101008/d4ba2346/attachment.htm>


More information about the CMake mailing list