[Cmake] CMake SET + CMakeCache.txt
Andy Cedilnik
andy.cedilnik at kitware.com
Mon Apr 7 08:10:28 EDT 2003
Hi Ingmar,
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -someOtherNewFlag")
otherwise you get ; between old flags and new ones.
Andy
On Mon, 2003-04-07 at 08:01, Bitter, Ingmar (NIH/CC/DRD) wrote:
> Append by initializing with old value + new flags:
>
> Set (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-O2 -someOtherNewFlag")
>
> -Ingmar
>
> -----Original Message-----
> From: Neil Killeen [mailto:Neil.Killeen at atnf.csiro.au]
> Sent: Sunday, April 06, 2003 11:56 PM
> To: Brad King
> Cc: Neil Killeen; CMake
> Subject: Re: [Cmake] CMake SET + CMakeCache.txt
>
> I am looking for a mechanism for use in a CMakeLists.txt file by which I
> can APPEND to- rather than INITIALIZE- the contents of a cmake variable,
> in this case CMAKE_CXX_FLAGS so that when I run ccmake, what I appended and
> what was already there will appear.
>
> _______________________________________________
> Cmake mailing list
> Cmake at public.kitware.com
> http://public.kitware.com/mailman/listinfo/cmake
More information about the CMake
mailing list