在win下面使用cdt+cygwin+cmake

在cygwin終端下面,ios

cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug eclipse

當收穫警告spa

Could not determine Eclipse version, assuming at least 3.6 (Helios)ip

加上指定eclipse版本get

 cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug -D_ECLIPSE_VERSION=3.7 ../../../../workspace/core_obj/io

若是收穫這個警告Cannot determine link language for target,則ast

SET_TARGET_PROPERTIES(XYZ PROPERTIES LINKER_LANGUAGE C)下面這個警告 CMake no longer defines WIN32 on Cygwin! cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_LEGACY_CYGWIN_WIN32=0 -D CMAKE_BUILD_TYPE=Debug -D_ECLIPSE_VERSION=3.7 ../../../../workspace/core_obj/
相關文章
相關標籤/搜索