[packages/websocketpp] - added cmake-boost patch to update find_package(Boost ...) usage
qboosh
qboosh at pld-linux.org
Sat Mar 29 17:16:37 CET 2025
commit a92d6b4c7956a685efb2d2ace58670f7478a1c59
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 29 16:47:53 2025 +0100
- added cmake-boost patch to update find_package(Boost ...) usage
websocketpp-cmake-boost.patch | 22 ++++++++++++++++++++++
websocketpp.spec | 2 ++
2 files changed, 24 insertions(+)
---
diff --git a/websocketpp.spec b/websocketpp.spec
index ae7836e..7e5a581 100644
--- a/websocketpp.spec
+++ b/websocketpp.spec
@@ -17,6 +17,7 @@ Patch0: %{name}-cmake_noarch.patch
Patch1: %{name}-cmake-configversion-compatibility.patch
Patch2: %{name}-tests.patch
Patch3: boost-1.87.patch
+Patch4: %{name}-cmake-boost.patch
URL: https://www.zaphoyd.com/websocketpp/
BuildRequires: boost-devel >= 1.39
BuildRequires: cmake >= 2.8.8
@@ -70,6 +71,7 @@ oparty o Boost Asio.
%patch -P 1 -p1
%patch -P 2 -p1
%patch -P 3 -p1
+%patch -P 4 -p1
%build
install -d build
diff --git a/websocketpp-cmake-boost.patch b/websocketpp-cmake-boost.patch
new file mode 100644
index 0000000..5b08848
--- /dev/null
+++ b/websocketpp-cmake-boost.patch
@@ -0,0 +1,22 @@
+--- websocketpp-0.8.2/CMakeLists.txt.orig 2025-03-29 12:11:12.418632889 +0100
++++ websocketpp-0.8.2/CMakeLists.txt 2025-03-29 16:22:55.506812437 +0100
+@@ -215,7 +215,7 @@ if (BUILD_TESTS OR BUILD_EXAMPLES)
+ set (Boost_USE_MULTITHREADED TRUE)
+ set (Boost_ADDITIONAL_VERSIONS "1.39.0" "1.40.0" "1.41.0" "1.42.0" "1.43.0" "1.44.0" "1.46.1") # todo: someone who knows better spesify these!
+
+- find_package (Boost 1.39.0 COMPONENTS "${WEBSOCKETPP_BOOST_LIBS}")
++ find_package (Boost 1.39.0 COMPONENTS ${WEBSOCKETPP_BOOST_LIBS})
+
+ if (Boost_FOUND)
+ # Boost is a project wide global dependency.
+--- websocketpp-0.8.2/cmake/CMakeHelpers.cmake.orig 2020-04-19 20:25:17.000000000 +0200
++++ websocketpp-0.8.2/cmake/CMakeHelpers.cmake 2025-03-29 16:39:51.317975982 +0100
+@@ -86,7 +86,7 @@ endmacro ()
+
+ macro (link_boost)
+ target_link_libraries (${TARGET_NAME} ${Boost_LIBRARIES})
+- set_property(TARGET ${TARGET_NAME} APPEND PROPERTY INCLUDE_DIRECTORIES ${Boost_INCLUDE_DIR})
++ set_property(TARGET ${TARGET_NAME} APPEND PROPERTY INCLUDE_DIRECTORIES ${Boost_INCLUDE_DIRS})
+ endmacro ()
+
+ macro (link_openssl)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/websocketpp.git/commitdiff/a92d6b4c7956a685efb2d2ace58670f7478a1c59
More information about the pld-cvs-commit
mailing list