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
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake