[CMake] Rebuilding cmake itself on Windows
Paul Smith
paul at mad-scientist.net
Fri Apr 12 16:46:02 EDT 2013
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 <commit>
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!
More information about the CMake
mailing list