[Cmake] conditions based on cmake version

Wheeler, Frederick W (Research) wheeler at crd.ge.com
Mon Apr 14 16:18:16 EDT 2003


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



More information about the CMake mailing list