Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / boost / cmake-paths-173.patch
blob7b88da0e42a94dd600034f57fe6722b29bb4fec3
1 diff --git a/tools/boost_install/boost-install.jam b/tools/boost_install/boost-install.jam
2 index 4238f921e..8fc1ea269 100644
3 --- a/tools/boost_install/boost-install.jam
4 +++ b/tools/boost_install/boost-install.jam
5 @@ -649,7 +649,7 @@ rule generate-cmake-config- ( target : sources * : properties * )
6 ""
7 "# Compute the include and library directories relative to this file."
8 ""
9 - "get_filename_component(_BOOST_CMAKEDIR \"${CMAKE_CURRENT_LIST_DIR}/../\" REALPATH)"
10 + "get_filename_component(_BOOST_REAL_CMAKEDIR \"${CMAKE_CURRENT_LIST_DIR}/../\" REALPATH)"
11 : true ;
13 if [ path.is-rooted $(cmakedir) ]
14 @@ -668,6 +668,8 @@ rule generate-cmake-config- ( target : sources * : properties * )
15 " unset(_BOOST_CMAKEDIR_ORIGINAL)"
16 "endif()"
18 + "# Assume that the installer actually did know where the libs were to be installed"
19 + "get_filename_component(_BOOST_CMAKEDIR \"$(cmakedir-native)\" REALPATH)"
20 : true ;