[CMake] suppressing the compiler chooser dialog

Jesse Corrington jesse.corrington at gmail.com
Wed Nov 28 18:34:16 EST 2007


Well, not exactly, but close. We have a variety of different builds and some
only work on some platforms. For instance on windows desktop we have 2
different builds which both use msvc.

The goal would basically be to supply a list of builds that are supported
and pick the compiler based on the build name, since we only support a
limited number of platforms. An example of this build list would be:

windows desktop A
windows desktop B
windows mobile 5
windows mobile 6
symbian
etc.

On Nov 28, 2007 3:28 PM, Pau Garcia i Quiles <pgquiles at elpauer.org> wrote:

> Quoting Brandon Van Every <bvanevery at gmail.com>:
>
> > On Nov 28, 2007 5:01 PM, Jesse Corrington <jesse.corrington at gmail.com>
> wrote:
> >> I am wondering if there is anyway to suppress the compiler picker
> dialog
> >> that comes up when you first do configure on a cmakelists. For my
> project I
> >> want to have an option for what build they want and based on that I
> would
> >> like to set the compiler through cmake script if possible. Is there
> anyway
> >> to do this?
> >
> > I don't get it.  If I pick a compiler via CMakeSetup, I'm telling you
> > what build I want.  What do you mean?
>
> I think what he wants to do it exactly the opposite we usually do.
>
> Instead of choosing a compiler (for instance, Visual C++), then choose
> a build type (Release, Debug, etc) in the CMakeLists.txt depending on
> the command line, he seems to want to ask for the build type, then
> choose a compiler depending on that. If I have understood correctly,
> he wants to say "if build type is debug, use Visual C++ but if build
> type is release, use mingw".
>
> --
> Pau Garcia i Quiles
> http://www.elpauer.org
> (Due to my workload, I may need 10 days to answer)
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071128/84ecdf21/attachment.htm


More information about the CMake mailing list