[CMake] initializing default values

Jan Woetzel jw at mip.informatik.uni-kiel.de
Fri Sep 2 06:15:46 EDT 2005


Hi,
i am actually overriding the values the same way you do.

However, if the user edits teh value interactively (in 
ccmake/CMakeSetup) his changes will be ovverriden and lost due to the 
"CACHE ... FORCE".
(1) Does anybody have an idea how to change just the intial "first camke 
run" CACHE  value of CMAKE_CXX_FLAGS
and then let the user override them completely?

Thanks,
Jan.

>SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" CACHE STRING "common C++ build flags" FORCE)
>  
>
-- 

  Dipl.-Ing. Jan Woetzel
--------------------------------------------------
  University of Kiel
  Institute of Computer Science and Applied Mathematics
  Hermann-Rodewald-Str. 3 [room 310]
  24098 Kiel/Germany
--------------------------------------------------
  Phone +49-431-880-4477
  Fax   +49-431-880-4054
  Mob.  +49-179-2937346
--------------------------------------------------
  Url   www.mip.informatik.uni-kiel.de/~jw
  Email jw at mip.informatik.uni-kiel.de



More information about the CMake mailing list