[cmake-developers] CMake: need developer help / adopt a bug
Daniel Pfeifer
daniel at pfeifer-mail.de
Mon Aug 20 17:16:09 EDT 2012
2012/8/20 David Cole <david.cole at kitware.com>:
> 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
More information about the cmake-developers
mailing list