[Cmake] conditions based on cmake version
Andy Cedilnik
andy.cedilnik at kitware.com
Mon Apr 14 16:24:35 EDT 2003
Hi,
Yes, but you can do it easier than that.
IF(COMMAND WRITE_FILE)
...
Andy
On Mon, 2003-04-14 at 16:18, Wheeler, Frederick W (Research) wrote:
> 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