[CMake] Rebuilding cmake itself on Windows

2013-04-12 Thread Paul Smith
Hi all; I need to rebuild cmake to incorporate a fix that has been added
since the last release (I could get a nightly build but I was hoping to
use released cmake with just the fix I need to reduce risk) and which is
causing my builds to fail sometimes.  For Linux and MacOS this was quite
simple using bootstrap.

For Windows I have an older version of cmake installed, which is fine,
and I'm able to build the version I want with this (VS 2010 installed):

  git clone git:.../cmake.git
  cd cmake
  git cherry-pick 
  cmake .
  devenv CMake.sln /Rebuild Release

So far so good.  I see cmake.exe etc. and it works if I run it.  But now
I want to "install" this newly-built cmake into a specific location, and
I don't know how to do it (I could copy it by hand of course but that
seems sub-optimal).  I really would like to do it via the command line.

What's the operation I should use to do the installation of cmake?
Also, for Linux/MacOS I run bootstrap.sh with the --prefix flag to
specify where to install.  How can I do this kind of thing for the
Windows build?



Thanks!

--

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


Re: [CMake] Rebuilding cmake itself on Windows

2013-04-12 Thread Jean-Christophe Fillion-Robin
Hi Paul,

Set option CMAKE_INSTALL_PREFIX to a location of your choice

Then, build INSTALL target

Hth
Jc


On Fri, Apr 12, 2013 at 4:46 PM, Paul Smith  wrote:

> Hi all; I need to rebuild cmake to incorporate a fix that has been added
> since the last release (I could get a nightly build but I was hoping to
> use released cmake with just the fix I need to reduce risk) and which is
> causing my builds to fail sometimes.  For Linux and MacOS this was quite
> simple using bootstrap.
>
> For Windows I have an older version of cmake installed, which is fine,
> and I'm able to build the version I want with this (VS 2010 installed):
>
>   git clone git:.../cmake.git
>   cd cmake
>   git cherry-pick 
>   cmake .
>   devenv CMake.sln /Rebuild Release
>
> So far so good.  I see cmake.exe etc. and it works if I run it.  But now
> I want to "install" this newly-built cmake into a specific location, and
> I don't know how to do it (I could copy it by hand of course but that
> seems sub-optimal).  I really would like to do it via the command line.
>
> What's the operation I should use to do the installation of cmake?
> Also, for Linux/MacOS I run bootstrap.sh with the --prefix flag to
> specify where to install.  How can I do this kind of thing for the
> Windows build?
>
>
>
> Thanks!
>
> --
>
> 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
>



-- 
+1 919 869 8849
--

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

Re: [CMake] Rebuilding cmake itself on Windows

2013-04-12 Thread Paul Smith
On Fri, 2013-04-12 at 17:04 -0400, Jean-Christophe Fillion-Robin wrote:
> Hi Paul, 

> Set option CMAKE_INSTALL_PREFIX to a location of your choice

> Then, build INSTALL target

Hi; thanks a lot for your answer!  I was able to set
CMAKE_INSTALL_PREFIX; thanks for that.

Can you give a specific example of how to "build INSTALL target"?  I
can't figure out how that should work.  For example I tried:

  devenv CMake.sln /Build INSTALL

but that didn't work; I got this error:

  Invalid solution configuration

I've tried lots of other options, like "/Deploy INSTALL", just "INSTALL"
by itself, etc. and they all fail with various errors.

I'm afraid I'm not very knowledgeable about Windows :-(.

--

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


Re: [CMake] Rebuilding cmake itself on Windows

2013-04-12 Thread Jean-Christophe Fillion-Robin
Hi,

Since the syntax can change between version of Visual Studio, you could try
to use cmake directly:

  cd C:\path\to\project-build
  cmake.exe  --build . --target INSTALL --config Release

See http://www.cmake.org/cmake/help/v2.8.10/cmake.html#opt:--builddir


Alternatively, you could also open the associated solution file in visual
studio and build the INSTALL target.

Hth
Jc


On Fri, Apr 12, 2013 at 5:58 PM, Paul Smith  wrote:

> On Fri, 2013-04-12 at 17:04 -0400, Jean-Christophe Fillion-Robin wrote:
> > Hi Paul,
>
> > Set option CMAKE_INSTALL_PREFIX to a location of your choice
>
> > Then, build INSTALL target
>
> Hi; thanks a lot for your answer!  I was able to set
> CMAKE_INSTALL_PREFIX; thanks for that.
>
> Can you give a specific example of how to "build INSTALL target"?  I
> can't figure out how that should work.  For example I tried:
>
>   devenv CMake.sln /Build INSTALL
>
> but that didn't work; I got this error:
>
>   Invalid solution configuration
>
> I've tried lots of other options, like "/Deploy INSTALL", just "INSTALL"
> by itself, etc. and they all fail with various errors.
>
> I'm afraid I'm not very knowledgeable about Windows :-(.
>
>


-- 
+1 919 869 8849
--

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

Re: [CMake] Rebuilding cmake itself on Windows

2013-04-12 Thread Michael Jackson
I usually use:

msbuild /p:Configuration=Release INSTALL.vxproj

Which seems to work on VS 2010 SP1
___
Mike JacksonPrincipal Software Engineer
BlueQuartz SoftwareDayton, Ohio
mike.jack...@bluequartz.net  www.bluequartz.net

On Apr 12, 2013, at 5:58 PM, Paul Smith wrote:

> On Fri, 2013-04-12 at 17:04 -0400, Jean-Christophe Fillion-Robin wrote:
>> Hi Paul, 
> 
>> Set option CMAKE_INSTALL_PREFIX to a location of your choice
> 
>> Then, build INSTALL target
> 
> Hi; thanks a lot for your answer!  I was able to set
> CMAKE_INSTALL_PREFIX; thanks for that.
> 
> Can you give a specific example of how to "build INSTALL target"?  I
> can't figure out how that should work.  For example I tried:
> 
>  devenv CMake.sln /Build INSTALL
> 
> but that didn't work; I got this error:
> 
>  Invalid solution configuration
> 
> I've tried lots of other options, like "/Deploy INSTALL", just "INSTALL"
> by itself, etc. and they all fail with various errors.
> 
> I'm afraid I'm not very knowledgeable about Windows :-(.
> 
> --
> 
> 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

--

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


Re: [CMake] Rebuilding cmake itself on Windows

2013-04-12 Thread Paul Smith
On Fri, 2013-04-12 at 18:07 -0400, Jean-Christophe Fillion-Robin wrote:


> Since the syntax can change between version of Visual Studio, you
> could try to use cmake directly:
> 
>   cd C:\path\to\project-build
>   cmake.exe  --build . --target INSTALL --config Release

That worked perfectly; I wasn't aware of this.  Much simpler.  Thanks!

Michael Jackson  wrote:

> msbuild /p:Configuration=Release INSTALL.vxproj

This didn't work for me; there's no "msbuild" on my system.  Looks like
something I need to install separately.

Thanks for the help, I seem to have things under control now.

--

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