[CMake] cdt generator and subclipse?

Dan Kegel dank at kegel.com
Thu Nov 10 17:32:18 EST 2011


Hey folks,
http://www.cmake.org/Wiki/Eclipse_CDT4_Generator
says the cdt generator should work with subclipse if you set
 -DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE
on the commandline when running cmake, but it doesn't seem
to be working here.

As a sanity check, I verified that a normal eclipse project in svn, e.g.

  svn co http://winezeug.googlecode.com/svn/trunk/hello hello

  cd hello

gets connected properly if you add it to the workspace
and run team/share/svn on it.

But while a cdt-generated project in svn, e.g.

  svn co http://winezeug.googlecode.com/svn/trunk/cmake_examples cmake_examples

  cd cmake_examples/ex6

  mkdir build

  cd build

  cmake -G"Eclipse CDT4 - Unix Makefiles"
-DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE -DCMAKE_BUILD_TYPE=Debug
../demo

can be added to the workspace and built with eclipse,
if you run team/share/svn on it, subclipse doesn't seem to
recognize that the project came from svn.
Instead, it offers to create the project in svn for you :-(

What am I doing wrong?


More information about the CMake mailing list