[Cmake] file/project specific compile flags

Phil Pritchett p.pritchett at 2d3.com
Fri Oct 26 05:54:56 EDT 2001


Bill, 

A while ago on the vxl mailing list you mentioned that you were working on
file-specific compile flags. The problem I have currently is that I have a
build type for an application where one of the libraries must be compiled
with /01 (min-size optimization) and the others are compiled with /O2 
Is there any way that I can do this under cmake ? It seems that CMake would
need to be aware of the which build type is being built in order to do this.

A couple of other things I have found so far :

o adding build types is a pain for MS and has no equivalent under unix,
under  the old target and vxl make systems you could "make debug".
o CMakeWindowSystemConfig.cmake is always taken from the system CMake
Templates  directory rather than the one specified by
MSPROJECT_TEMPLATE_DIRECTORY. is this the correct behaviour ?
o even though you can add build types to the various MS templates the search
and replace used to generated the project files is hardcoded in, so I
couldn't add  CMAKE_CXX_FLAGS_MYBUILD into the project templates.

Cheers,
Phil

This e-mail, and any attachment, is confidential. If you have received it in
error, please delete it from your system, do not use or disclose the
information in any way, and notify me immediately.



More information about the CMake mailing list