[Cmake] build flags

Cross, Geoff (CRD) crossge at crd.ge.com
Wed May 23 18:19:46 EDT 2001


> CMAKE_CXX_FLAGS_RELEASE = /MD /O2
> CMAKE_CXX_FLAGS_MINSIZEREL = /MD /O1
> CMAKE_CXX_FLAGS_DEBUG = /MDd /Zi /Od /GZ
> CMAKE_CXX_FLAGS = /W3 /Zm1000 /FD /GX /GR

I'm getting defaults of:

CMAKE_CXX_FLAGS_DEBUG = /MDd /Zi /Od /Gz /O2

which is illegal:

Command line error D2016 : '/O2' and '/GZ' command-line options are incompatible





More information about the CMake mailing list