Thanks Michael, I think it will do the trick until cmake add this feature...
-----Message d'origine----- De : [email protected] [mailto:[email protected]] De la part de Michael Jackson Envoyé : mercredi 20 mai 2009 15:23 À : cmake Objet : Re: [CMake] Eclipse Generator and Configuration Well, One way to "fix" the issue is to create 2 build directories (which is what all the other IDEs would do), one for Debug and One for Release then in the Eclipse Project when you create the configurations just point eclipse at each build directory for its configuration. This does necessitate the need to run CMake 2 times, once for each configuration, but does end up working very well. I do this manually for Makefiles on Linux, OS X, and MSYS/MinGW _________________________________________________________ Mike Jackson [email protected] BlueQuartz Software www.bluequartz.net Principal Software Engineer Dayton, Ohio On May 20, 2009, at 9:13 AM, Pierre-Julien Villoud wrote: > 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 _______________________________________________ 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 _______________________________________________ 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
