[cmake-developers] [PATCH] fix issue #0016076 Add a --bindir option to bootstrap and use it to install cmake in custom directory
Brad King
brad.king at kitware.com
Fri May 27 11:51:53 EDT 2016
On 05/27/2016 10:59 AM, BUNEL Nicolas wrote:
> I add the --bindir option to bootstrap.
>
> The patches are attach to this email.
Thanks for working on this. See below for comments.
> Is-it possible to add these modifications in cmake master branch ?
Yes, but as announced on the list earlier today non-cleanup
development is frozen until after the 3.6 release branch is
created on June 1. This can be integrated after that.
> +#define CMAKE_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
...
> - // Install tree has "<prefix>/bin/cmake" and "<prefix><CMAKE_DATA_DIR>".
> - std::string dir = cmSystemTools::GetFilenamePath(exe_dir);
> + // Install tree has "<prefix>/<CMAKE_BIN_DIR>/cmake" and "<prefix><CMAKE_DATA_DIR>".
> + std::string dir = CMAKE_INSTALL_PREFIX;
> cmSystemToolsCMakeRoot = dir + CMAKE_DATA_DIR;
The purpose of cmSystemTools::FindCMakeResources's logic is to
find resources relative to the location of the CMake binary
so that the installation can be relocated. We cannot use a
configured/hard-coded CMAKE_INSTALL_PREFIX. Please revise the
logic to compute the prefix from `exe_dir` by stripping the
suffix corresponding to CMAKE_BIN_DIR.
Thanks,
-Brad
More information about the cmake-developers
mailing list