With a make file generator, you do set CMAKE_BUILD_TYPE to Debug or Release
at configure time. Then, if you want both builds, you need to have two build
trees, one configured for Debug, the other for Release. The part of the Wiki
you are referring to only applies to IDEs that have their own project files
that manage multiple configurations at build time, like Visual Studio and
Xcode.


HTH,
David


On 3/4/08, Malhotra, Anupam <[EMAIL PROTECTED]> wrote:
>
>  Hi
>
>
>
> I read on the CMake wiki page that:
>
>
>
> CMAKE_BUILD_TYPE is not initialized with a readable value at configuration
> time. This is because the user is free to select a build type at build time.
> Now in visual studio 6/visual studio 8 2005 we can select the build type by
> selecting Debug/Release after opening the workspace/solution. But how can
> the same be achieved in Linux? After my makefiles are generated using cmake,
> I want to first build the Debug mode and then the release mode. But how do I
> select which build type to select while building? Please advise.
>
>
>
> Thanks and Regards
>
> Anupam Malhotra
>
>
>
> The information contained in this electronic mail transmission
> may be privileged and confidential, and therefore, protected
> from disclosure. If you have received this communication in
> error, please notify us immediately by replying to this
> message and deleting it from your computer without copying
> or disclosing it.
>
>
>
> _______________________________________________
> CMake mailing list
> CMake@cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to