在cygwin终端下面,

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

当收获警告

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

加上指定eclipse版本

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

如果收获这个警告Cannot determine link language for target,则

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/

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2022-01-02
  • 2022-02-16
  • 2021-05-22
  • 2021-04-10
相关资源
相似解决方案