[Cmake] "make install" fails - new release of CMake?
Hans Fredrik Nordhaug
hansfn at mi.uib.no
Sat Jul 3 05:46:19 EDT 2004
On Fri, Jul 02, 2004 at 03:04:06PM -0400, William A. Hoffman wrote:
> At 01:37 PM 7/2/2004, Hans Fredrik Nordhaug wrote:
> >On Fri, Jul 02, 2004 at 08:58:38AM -0400, Andy Cedilnik wrote:
> >> Hi Hans,
> >>
> >> Looked a little more into this and the problem is the fact that you are
> >> using msys as Unix environment. CMake installed files to /usr/local as
> >> you asked it. That would be c:/usr/local and not what looks like
> >> /usr/local from MSys, which is in reality c:/msys/1.0.
> >
> >I'm aware of this and maybe should have made the use of MSYS clearer.
> >
> >> I would go even further to say that /usr/local is just as good place to
> >> install things on windows as any.
> >>
> >> So, it is up to you to say, well, I would like this program to go to
> >> c:/msys/1.0/local.
> >
> >OK, but:
> >
[cut]
> >3) Why is
> > cmake -DCMAKE_INSTALL_PREFIX:PATH="/usr/local" -G"Unix Makefiles"
> > different from
> > cmake -G"Unix Makefiles"
> > when the default for CMAKE_INSTALL_PREFIX actually is "/usr/local"?
> > Seems very inconsistent to me...
>
> In CMake 2.0, the install was changed from using install.sh to being implemented
> as part of cmake. As a result, cmake install is now faster, and actually
> works on systems that do not have /bin/sh like windows without cygwin or msys.
Yes, the install is much faster - thx a lot for that!
> A side effect of that is that msys paths are not recognized by cmake as they
> were by the /bin/sh used in 1.8. So, to explain your 1,2, and 3:
[cut]
> 3. Msys is actually modifying the arguments that are coming into cmake!
> It took a while to track down, but I found that
> cmake -DCMAKE_INSTALL_PREFIX:PATH="/usr/local"
> sets argv[1] to -DCMAKE_INSTALL_PREFIX:PATH=C:/msys/1.0/local
> I would not expect that, but that is what it did.
OK, thanks for the explanation
> I am not sure exactly what to do, other than say that is how it works
> with MSYS.
I can live with this. I just needed to understand.
Regards,
Hans
More information about the Cmake
mailing list