[cmake-developers] usr-move v. cross-compiling

Brad King brad.king at kitware.com
Wed Apr 3 11:37:10 EDT 2013


On 04/01/2013 10:25 AM, Brad King wrote:
>  http://www.cmake.org/Bug/view.php?id=14041
> 
> Our usr-move changes to hard-code the "/usr" prefix conflicts with
> cross-compiling cases where the host side relocates a package
> under some new root and finds it with CMAKE_FIND_ROOT_PATH.

Here is a fix using a new approach to support usr-move:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6c613b43

While implementing this I realized the old approach was not
fully implemented in configure_package_config_file anyway
because while not referencing PACKAGE_PREFIX_DIR it would
still leave that variable set improperly after PACKAGE_INIT.
The new approach restores the original references to
PACKAGE_PREFIX_DIR in all cases but adds code to fix its
value in the usr-move case.

-Brad



More information about the cmake-developers mailing list