File boost-remove-cmakedir.patch of Package boost

Index: boost_1_74_0/tools/boost_install/boost-install.jam
===================================================================
--- boost_1_74_0.orig/tools/boost_install/boost-install.jam
+++ boost_1_74_0/tools/boost_install/boost-install.jam
@@ -652,25 +652,6 @@ rule generate-cmake-config- ( target : s
         "get_filename_component(_BOOST_CMAKEDIR \"${CMAKE_CURRENT_LIST_DIR}/../\" REALPATH)"
         : true ;
 
-    if [ path.is-rooted $(cmakedir) ]
-    {
-        local cmakedir-native = [ path-native-fwd $(cmakedir) ] ;
-
-        print.text
-
-            ""
-            "# If the computed and the original directories are symlink-equivalent, use original"
-            "if(EXISTS \"$(cmakedir-native)\")"
-            "  get_filename_component(_BOOST_CMAKEDIR_ORIGINAL \"$(cmakedir-native)\" REALPATH)"
-            "  if(_BOOST_CMAKEDIR STREQUAL _BOOST_CMAKEDIR_ORIGINAL)"
-            "    set(_BOOST_CMAKEDIR \"$(cmakedir-native)\")"
-            "  endif()"
-            "  unset(_BOOST_CMAKEDIR_ORIGINAL)"
-            "endif()"
-            ""
-            : true ;
-    }
-
     get-dir "_BOOST_INCLUDEDIR" : $(includedir) ;
 
     if $(library-type) = INTERFACE
openSUSE Build Service is sponsored by