Miguel A. Figueroa-Villanueva wrote:

Isn't there a way to detect the shortcut in win32 and not create the
directory if it exists? Something equivalent to:


The short answer is that no. Shortcuts are basically a property of the Windows GUI environment, not of the file system. As such, all command-line tools in windows don't respect them. cmake, being a command-line tool, should behave like other command-line tools.

A Windows shortcut is a really a text file with a .lnk extension. As such, it is different from an actual directory with the same name.

Shortcuts are not really symbolic links at all. Windows to this day does not have symbolic links as Unix does, so it would be incorrect to use any of those functions to work with shortcuts.

You may, however, want to request a function to parse shortcuts, albeit you can probably write it in .cmake yourself (as it a .lnk file is just a text file).

--
Gonzalo Garramuño
[EMAIL PROTECTED]

AMD4400 - ASUS48N-E
GeForce7300GT
Kubuntu Edgy
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to