[CMake] Permission issues with install command on Vista

David Cole david.cole at kitware.com
Mon May 16 17:44:34 EDT 2011


Better yet: do not install anything to System32. Ever. There's no need for
it.

That's been a best-practice install technique for at least 10 years now.


On Thu, May 12, 2011 at 2:28 AM, Rolf Eike Beer <eike at sf-mail.de> wrote:

> > Hello,
> >
> > actual I'm struggling with CMAKE INSTALL command on Windows Vista, when
> > I try to copy the resulting DLL to the system32 folder using this
> > command:
> >
> > INSTALL(FILES ${CMAKE_SOURCE_DIR}/lib/lib${LIBRARY_NAME}.dll DESTINATION
> > $ENV{SYSTEMROOT}/System32/)
> >
> > On XP this command could be used without any failure. On Vista i got the
> > error message that the dll could not copied. It seems to me that cmake
> > has not the permission to execute this command running the script from
> > my MSYS/MinGW environment.  Is it possible to give cmake those
> > permissions on install command?
>
> Put your install command in a script an then "run as Administrator"?
>
> Eike
> _______________________________________________
> 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://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110516/b04fd82c/attachment.htm>


More information about the CMake mailing list