[Cmake] Adding flags to CMAKE_CXX_FLAGS

Daniel Rueckert dr at doc.ic.ac.uk
Wed Jul 24 07:13:49 EDT 2002


Hi,

I am trying to add some flags to the MS VC++ compiler under windows
using a statement like:

IF (WIN32)
    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /TP /Ze")
ENDIF (WIN32)

Unfortunately, this doesn't seem to work. Is there any workaround
this?

Thanks, Daniel
-- 
Daniel Rueckert, Ph.D.
Visual Information Processing (VIP)
Dept of Computing, Imperial College
180 Queens' Gate                         Tel: +44 20 7594 8333
London SW7 2BZ                           Fax: +44 20 7581 8024
mailto:D.Rueckert at doc.ic.ac.uk           http://vip.doc.ic.ac.uk/~dr




More information about the CMake mailing list