[CMake] How to specify target specific CPPFLAGS or CFLAGS?

Alexander Neundorf a.neundorf-work at gmx.net
Tue May 15 10:51:11 EDT 2007


On Tuesday 15 May 2007 10:47, haibin zhang wrote:
> Hi ,
> Just as said, How can I change CFLAGS in configure in cmake?
> for example in autotool:
> //remove debug option
> ./configure --prefix=/opt  CFLAGS=-O2

cmake -DCMAKE_INSTALL_PREFIX=/opt ..
(or use ccmake)
and the CFLAGS env. var should also be honored AFAIK.

Bye
Alex


More information about the CMake mailing list