[CMake] How to know if symlink is supported

Nicolas Desprès nicolas.despres at gmail.com
Fri Mar 4 10:49:21 EST 2011


Hi everyone,

Is there a better way to check whether the platform support symlink
than this one:

if(WIN32)
  if(CYGWIN)
    set(HAVE_SYMLINK TRUE)
  else(CYGWIN)
    set(HAVE_SYMLINK FALSE)
  endif(CYGWIN)
else(WIN32)
  set(HAVE_SYMLINK TRUE)
endif(WIN32)

Regards,

-- 
Nicolas Desprès


More information about the CMake mailing list