SPAM-LOW: RE: SPAM-LOW: Re: [CMake] Renaming output of EXECUTABLE
Reggie Burnett
reggie at bytefx.com
Thu Dec 1 13:05:31 EST 2005
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?
Reggie
> -----Original Message-----
> From: William A. Hoffman [mailto:billlist at nycap.rr.com]
> Sent: Thursday, December 01, 2005 11:03 AM
> To: Reggie Burnett; darko at uvcms.com
> Cc: cmake at cmake.org
> Subject: SPAM-LOW: RE: SPAM-LOW: Re: [CMake] Renaming output of EXECUTABLE
>
> At 11:53 AM 12/1/2005, Reggie Burnett wrote:
> >Bill
> >
> >But I can switch on a property value that I set to set the exe name and
> have
> >it work in Visual or Xcode?
>
> No, the problem is CMake is no longer running at that time. I think you
> have
> to go to the custom command approach for the IDE's. Build it with one
> name, and
> then copy it to some other name based in CMAKE_CFG_INTDIR. The copy
> program will
> have to be a bit smart, or some sort of cmake script.
>
> -Bill
More information about the CMake
mailing list