[Cmake] Conditional CMakeLists.txt on CMake version?

Amitha Perera perera at cs.rpi.edu
Wed May 22 19:37:15 EDT 2002


Is there a way to condition CMakeLists.txt on the CMake version? I'd
like to implement some changes to the vxl CMakeLists.txt files to use
some of the 1.3 functionality, without breaking the builds for 1.2
users. Something like
  IF( CMAKE<1.3 )
     do old stuff
  ELSE
     do new stuff
  ENDIF

Thanks,
Amitha.



More information about the CMake mailing list