[CMake] xcode project generation - controlling the compilation/warning flags

Shmulik Regev shmulbox at gmail.com
Tue May 5 02:18:03 EDT 2009


Unfortunately this doesn't work, or I'm doing something wrong - I used
set (CMAKE_C_FLAGS_Debug "${CMAKE_C_FLAGS_Debug}  -Wfoo")

Any other hints?

Cheers,
Shmul

On Mon, May 4, 2009 at 6:23 PM, Tyler Roscoe <tyler at cryptio.net> wrote:

> On Mon, May 04, 2009 at 03:48:51PM +0300, Shmulik Regev wrote:
> > I'm using cmake to generate xcode project files. What is the recommended
> way
> > of controlling the compilation flags and the warnings settings in this
> > scenario? Currently I'm using "set_target_properties" but I'm not sure
> this
> > is the cmake-way of doing it.
>
> I'm not familiar with xcode but can't you just use e.g.
> CMAKE_C_FLAGS_Debug?
>
> tyler
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090505/28ddcc4a/attachment.htm>


More information about the CMake mailing list