[CMake] Cmake with Eclipse

Brandon Van Every bvanevery at gmail.com
Tue Jun 5 09:53:40 EDT 2007


On 6/5/07, Joachim Zettler <joachim_zettler at yahoo.de> wrote:
> Dear all,
>
> thank you for your help up to now. I followed the tutorials you provided to
> me and made a Standard C++ makefile project.
>
> Afterwards I tried to adjust the make command but it is not working. Here
> you can find the command.
>
> mingw32-make -f build\Makefile
>
> The makefile is actually in a build folder and i generated it before with
> cmake -G "MinGW Makefiles". Now it seems that the build\makefile is not
> working.

Can you be more specific?  What is the output of "mingw32-make VERBOSE=1" ?

> Also build/makefile is wrong. I dont want to write the full path
> because it depends on which pc I actually work.

CMake outputs absolute paths that only work in the target environment.
 You will have to generate new Makefiles on each specific machine you
use.  It's not wrong, it's a design choice.  Many things can go wrong
when you don't use absolute paths in a build.

> Up to now I also create the makefile myself everytime I change something in
> the cmakelist.txt. I have read about an option to run external tools but I
> dont know exactly how to implement this so that cmake is running only when
> something cmakelist has changed. Is there also a possibility to choose
> between release and debug? In vc++ this was very easy to handle :)

I don't know how to do these things in Eclipse.


Cheers,
Brandon Van Every


More information about the CMake mailing list