Skip to Content.
Sympa Menu

cgal-discuss - Re: Re: [cgal-discuss] Tutorial to install CGAL on Windows: Feedback needed

Subject: CGAL users discussion list

List archive

Re: Re: [cgal-discuss] Tutorial to install CGAL on Windows: Feedback needed


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: Re: [cgal-discuss] Tutorial to install CGAL on Windows: Feedback needed
  • Date: Mon, 11 Jun 2012 13:42:43 +0200
  • Organization: GeometryFactory

Le lundi 11 juin 2012 11:47:24 Philipp Moeller a écrit :
> "Laurent Rineau (CGAL/GeometryFactory)"
> <>
>
> writes:
> > Le samedi 09 juin 2012 16:35:18 Philipp Moeller a écrit :
> >> Sweety Pie
> >> <>
> >> writes:
> >> > Please note that CMake GUI should be Run as Administrator for Win7
> >>
> >> No, it shouldn't. This is only the case when file permissions or
> >> installation folders have been chosen poorly.
> >>
> >> Running build systems as root is dangerous.
> >
> > I think the tutorial should be more precise about that. In my opinion, if
> > the user account is not an "administrator account", the tutorial should
> > tell that the CGAL binary directory must be in the user directory.
>
> Isn't that a too strict restriction? Build as user and install as root
> should work well, too.

I think that the tutorial itself does not tell anything about the
installation
of the binaries, once built. Anyway, I was talking about the binary
directory,
that is the directory where the binaries are built. The installation
directory
(referred as CMAKE_INSTALL_PREFIX in CMake) is a different story.

Maybe the tutorial could document that installation part, the only one that
may need the administrative privileges. But the installation on Windows, if
CMake creates a Visual Studio solution, is done by Visual Studio itself, as a
special target of the solution. I do not like the idea that Visual Studio is
run with administrative privileges.

> We could also try to implement a check for the validity of the selected
> install directories at configuration time and issue a hint that the
> install target requires elevated privileges. Although, I see no way to
> get permissions of a directory from within CMake. We can always do funny
> things, e.g. trying to copy a file and check for the outcome, but I'm
> afraid that will lead to strange/scary results with UAC enabled.

You are right that it would be a bad idea.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.18.

Top of Page