cmake: fix build issue with boost 1.66.0
PATCH 1/1 cmake: fix build issue with boost 1.66.0
this fixes a build issue with boost 1.66.0
[Yocto 12762]
Signed-off-by Armin Kuster <[email protected]>
--- meta/recipes-devtools/cmake/cmake.inc | 4 + ...oost-1.66.0-dependency-and-release-update.patch | 52 ++++++++ ...ix-incorrect-alphabetisation-of-headers-l.patch | 29 +++++ ...mplement-Architecture-and-Address-Model-t.patch | 132 +++++++++++++++++++++ ...earch-for-upstream-packaged-libs-next-to-.patch | 31 +++++ 5 files changed, 248 insertions(+) create mode 100644 meta/recipes-devtools/cmake/cmake/0001-FindBoost-Boost-1.66.0-dependency-and-release-update.patch create mode 100644 meta/recipes-devtools/cmake/cmake/0001-FindBoost-Fix-incorrect-alphabetisation-of-headers-l.patch create mode 100644 meta/recipes-devtools/cmake/cmake/0002-FindBoost-Implement-Architecture-and-Address-Model-t.patch create mode 100644 meta/recipes-devtools/cmake/cmake/0003-FindBoost-Search-for-upstream-packaged-libs-next-to-.patch
meta/recipes-devtools/cmake/cmake.inc +4 -0
@@ -16,6 +16,10 @@ SRC_URI = "https://cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \ file://support-oe-qt4-tools-names.patch \ file://qt4-fail-silent.patch \ file://cmake-Prevent-the-detection-of-Qt5.patch \ + file://0001-FindBoost-Boost-1.66.0-dependency-and-release-update.patch \ + file://0001-FindBoost-Fix-incorrect-alphabetisation-of-headers-l.patch \ + file://0002-FindBoost-Implement-Architecture-and-Address-Model-t.patch \ + file://0003-FindBoost-Search-for-upstream-packaged-libs-next-to-.patch \ " SRC_URI[md5sum] = "1c38c67295ca696aeafd8c059d748b38"
meta/recipes-devtools/cmake/cmake/0001-FindBoost-Boost-1.66.0-dependency-and-release-update.patch new file +52 -0
52 lines not on this page · raw message
meta/recipes-devtools/cmake/cmake/0001-FindBoost-Fix-incorrect-alphabetisation-of-headers-l.patch new file +29 -0
@@ -0,0 +1,29 @@ +From b1e9f67137733bc109d355450fcd06edda4784c5 Mon Sep 17 00:00:00 2001 +From: "Paul \"TBBle\" Hampson" <[email protected]> +Date: Fri, 29 Dec 2017 20:07:31 +1100 +Subject: [PATCH 1/6] FindBoost: Fix incorrect alphabetisation of headers list + +Affects cmake < 3.11.0 + +Upsteam-Status: Backport +[Yocto 12762] +Signed-off-by: Armin Kuster <[email protected]> + +--- + Modules/FindBoost.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: cmake-3.10.3/Modules/FindBoost.cmake +=================================================================== +--- cmake-3.10.3.orig/Modules/FindBoost.cmake ++++ cmake-3.10.3/Modules/FindBoost.cmake +@@ -831,8 +831,8 @@ function(_Boost_COMPONENT_HEADERS compon + set(_Boost_CONTAINER_HEADERS "boost/container/container_fwd.hpp") + set(_Boost_CONTEXT_HEADERS "boost/context/all.hpp") + set(_Boost_COROUTINE_HEADERS "boost/coroutine/all.hpp") +- set(_Boost_EXCEPTION_HEADERS "boost/exception/exception.hpp") + set(_Boost_DATE_TIME_HEADERS "boost/date_time/date.hpp") ++ set(_Boost_EXCEPTION_HEADERS "boost/exception/exception.hpp") + set(_Boost_FIBER_HEADERS "boost/fiber/all.hpp") + set(_Boost_FILESYSTEM_HEADERS "boost/filesystem/path.hpp") + set(_Boost_GRAPH_HEADERS "boost/graph/adjacency_list.hpp")
meta/recipes-devtools/cmake/cmake/0002-FindBoost-Implement-Architecture-and-Address-Model-t.patch new file +132 -0
132 lines not on this page · raw message
meta/recipes-devtools/cmake/cmake/0003-FindBoost-Search-for-upstream-packaged-libs-next-to-.patch new file +31 -0
@@ -0,0 +1,31 @@ +From d56deff7d127b030739bd0034609d0046121d8cd Mon Sep 17 00:00:00 2001 +From: "Paul \"TBBle\" Hampson" <[email protected]> +Date: Fri, 29 Dec 2017 22:38:36 +1100 +Subject: [PATCH 3/6] FindBoost: Search for upstream-packaged libs next to + includes + +Upstream packages Boost binaries for Windows with the 'boost' directory +(the INCLUDE_DIR) next to the lib-... directory (the LIBRARY_DIR). + +Affects cmake < 3.11.0 + +Upsteam-Status: Backport +[Yocto 12762] +Signed-off-by: Armin Kuster <[email protected]> + +--- + Modules/FindBoost.cmake | 1 + + 1 file changed, 1 insertion(+) + +Index: cmake-3.10.3/Modules/FindBoost.cmake +=================================================================== +--- cmake-3.10.3.orig/Modules/FindBoost.cmake ++++ cmake-3.10.3/Modules/FindBoost.cmake +@@ -1502,6 +1502,7 @@ foreach(c DEBUG RELEASE) + ${Boost_INCLUDE_DIR}/stage/lib + ) + _Boost_UPDATE_WINDOWS_LIBRARY_SEARCH_DIRS_WITH_PREBUILT_PATHS(_boost_LIBRARY_SEARCH_DIRS_${c} "${Boost_INCLUDE_DIR}/..") ++ _Boost_UPDATE_WINDOWS_LIBRARY_SEARCH_DIRS_WITH_PREBUILT_PATHS(_boost_LIBRARY_SEARCH_DIRS_${c} "${Boost_INCLUDE_DIR}") + if( Boost_NO_SYSTEM_PATHS ) + list(APPEND _boost_LIBRARY_SEARCH_DIRS_${c} NO_CMAKE_SYSTEM_PATH NO_SYSTEM_ENVIRONMENT_PATH) + else()
Signature · 1 line
2.7.4