[Cmake] set default options

Jan Woetzel jw at mip . informatik . uni-kiel . de
Fri, 27 Jun 2003 13:34:20 +0200


Hi,

What's the right way to set defaults for CMAKE_* options?

I know this has been discussed before - but the right solution honoring
cache, force, option etc. still is not clear to me, sorry.

For example I want to set
  CMAKE_VERBOSE_MAKE    ON
  CMAKE_BUILD_TYPE   Release
as default for first c(c)make run. They should not be forced to be
written to cache because they should stay editable.


For the pre-defined cmake options and flags I am looking for something
similar to this:
OPTION( FOO_OPT "build foo?" ON)

Best regards,
Jan.


-- 

  Dipl.-Ing. Jan Woetzel
--------------------------------------------------
  University of Kiel
  Institute of Computer Science and Applied Mathematics
  Hermann-Rodewald-Str. 3 [room 401]
  24098 Kiel/Germany