SPAM-LOW: RE: SPAM-LOW: RE: SPAM-LOW: Re: [CMake] Renaming output
of EXECUTABLE
Reggie Burnett
reggie at bytefx.com
Thu Dec 1 14:57:50 EST 2005
This sounds like what I want. I'll try it and report back.
> -----Original Message-----
> From: William A. Hoffman [mailto:billlist at nycap.rr.com]
> Sent: Thursday, December 01, 2005 1:19 PM
> To: Reggie Burnett; darko at uvcms.com
> Cc: cmake at cmake.org
> Subject: SPAM-LOW: RE: SPAM-LOW: RE: SPAM-LOW: Re: [CMake] Renaming output
> of EXECUTABLE
>
> At 01:05 PM 12/1/2005, Reggie Burnett wrote:
> >Bill
> >
> >I guess I was confused. I thought that with Cmake acting as a sort of
> >preprocessor, I can get it to output what I needed. Sort of like this
> (in
> >pseudo cmake )
> >
> >IF BUILDA
> > SET (EXENAME, "myprog-a")
> >ELSE
> > SET (EXENAME, "myprog-b")
> >ENDIF
> >
> >ADD_EXECUTABLE(EXENAME, SRCS)
> >
> >I thought that when cmake ran, if BUILDA was true in the props that my
> >visual projects that were generated would have a project named myprog-a.
> If
> >it was not true, then the project would be named myprog-b. Is this not
> so?
>
> This is true, but the problem is that when cmake is run on a project, you
> get a .vcproj file with multiple build configurations. So, given your
> example,
> if you run cmake and BUILDA is set you would get this file:
>
> myprog-a.vcproj
>
> It would produce an executable called myprog-a.
> However, it would have configurations called Release and Debug inside it,
> that would be able to build a release or debug version of myprog-a.
>
> -Bill
More information about the CMake
mailing list