[Cmake] conditions based on cmake version
Ken Martin
ken.martin at kitware.com
Mon Apr 14 16:21:22 EDT 2003
Two choices
IF (COMMAND WRITE_FILE)
....
or
IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.6)
Ken
> -----Original Message-----
> From: cmake-admin at public.kitware.com [mailto:cmake-
> admin at public.kitware.com] On Behalf Of Wheeler, Frederick W (Research)
> Sent: Monday, April 14, 2003 3:18 PM
> To: CMake List (E-mail)
> Subject: [Cmake] conditions based on cmake version
>
>
> Is there a way to use WRITE_FILE() if and only if it is supported by
the
> version of cmake in use? Something like this? I'm just guessing at
the
> version here.
>
> IF( CMAKE_VERSION > 1.6.1 )
> WRITE_FILE( ... )
> ENDIF( CMAKE_VERSION > 1.6.1 )
>
> Does anyone have a quick example of this?
>
> Thanks,
> Fred Wheeler
> _______________________________________________
> Cmake mailing list
> Cmake at public.kitware.com
> http://public.kitware.com/mailman/listinfo/cmake
More information about the CMake
mailing list