[CMake] add configuration

James Bigler jamesbigler at gmail.com
Fri Mar 27 18:41:29 EDT 2009


On Fri, Mar 27, 2009 at 4:06 PM, Tyler Roscoe <tyler at cryptio.net> wrote:
> On Fri, Mar 27, 2009 at 03:39:14PM -0600, James Bigler wrote:
>> On Fri, Mar 27, 2009 at 1:50 PM, Tyler Roscoe <tyler at cryptio.net> wrote:
>> > On Fri, Mar 27, 2009 at 12:42:27PM -0700, Nicolas Slythe (Intern) wrote:
>> >> Is It possile to add a new configuration in visualstudio project
>> >> like Release, Debug
>> >
>> > http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_extend_the_build_modes_with_a_custom_made_one_.3F
>>
>> Well, according to that wiki entry it only works for gcc:
>>    "Notes: this will only work with gcc"
>
> The rest of that sentence is "(since the flags would need to be declined
> with the possible compilers)". The note is pointing out that flags like
> "-Wl,--warn-unresolved-symbols,--warn-once" are specific to gcc and that
> other compilers will need to be told how to warn on unresolved symbols
> with different flags.
>
> IOW, the *strategy* laid out in the FAQ is valid for all platforms but
> the sample *implementation* will only work for gcc (or compilers that
> understand gcc's compiler flags).

Ah, I see.  I guess I didn't understand what "declining a flag" meant.
 I clarified the wiki entry.

James


More information about the CMake mailing list