2012/8/20 David Cole <[email protected]>:
> Call for CMake developers! Please adopt one or more of these bugs if you
> can.
>
> The following 11 bugs are on the CMake 2.8.10 roadmap, but they are
> UNASSIGNED. They do not have anybody actively working on them at the moment.
>
> ...
> http://public.kitware.com/Bug/view.php?id=13162
Is it ok to use the Windows API to create symlinks? That would enable
symlinks depending for what version of Windows CMake is compiled.
====
bool SystemTools::CreateSymlink(const char* origName, const char* newName)
{
#if !defined(_WIN32) || defined(__CYGWIN__)
return symlink(origName, newName) >= 0;
#elif (_WIN32_WINNT >= 0x0600)
DWORD flags =
SystemTools::FileIsDirectory(origName)?SYMBOLIC_LINK_FLAG_DIRECTORY:0
return CreateSymbolicLink(newName, origName, flags) != FALSE;
#else
(void)origName;
(void)newName;
return false;
#endif
}
====
cheers, Daniel
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers