Ok... Thanks for your answer. 
I'm surprised this feature is not integrated yet in cmake since it's very 
common to switch configuration when you're working with an IDE. Now the IDE 
project files generators don't seem so interesting for me... 

I have to add the custom target Debug and Release in which I call cmake with 
the CMAKE_BUILD_TYPE corresponding to the configuration...

Thanks anyway I will be looking closely to the future versions of cmake !

-----Message d'origine-----
De : Jesper Eskilson [mailto:[email protected]] 
Envoyé : mercredi 20 mai 2009 15:03
À : Pierre-Julien Villoud
Cc : [email protected]
Objet : Re: [CMake] Eclipse Generator and Configuration

Pierre-Julien Villoud wrote:
> Hello everyone,
> 
> I'm trying to use the Eclipse CDT4 - MinGW Makefiles generator to
> generate the Eclipse project files. My problem is that it is not
> possible to choose the configuration (Debug or Release) from the
> Eclipse platform. Is there any way to make this possible or do I have
> to specify the configuration when I call cmake with the option
> -DCMAKE_BUILD_TYPE:STRING=xxx (xxx = Debug or Release).

I believe you need to rerun CMake to switch configuration.

I'd like to implement a revamped, GNU-make-only, Makefile-generator for 
CMake with support for selecting configuration at runtime. But day does 
not have enough hours, I'm afraid.

-- 
/Jesper

_______________________________________________
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

Reply via email to