[CMake] suppressing the compiler chooser dialog
Pau Garcia i Quiles
pgquiles at elpauer.org
Wed Nov 28 18:28:26 EST 2007
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)
More information about the CMake
mailing list