]> git.pld-linux.org Git - packages/websocketpp.git/blame - websocketpp-cmake-configversion-compatibility.patch
- updated to 0.8.2
[packages/websocketpp.git] / websocketpp-cmake-configversion-compatibility.patch
CommitLineData
6313f9e6
JB
1websocketpp-0.8.1-cmake-configversion-compatibility-anynewerversion.patch from Fedora:
2# Switch from ExactVersion to AnyNewerVersion to improve compatibility
3# https://cmake.org/cmake/help/v3.0/module/CMakePackageConfigHelpers.html
4# Fixes build failure of tomahawk, which uses "find_package(websocketpp 0.2.99 REQUIRED)"
5# PR submitted upstream: https://github.com/zaphoyd/websocketpp/pull/740
6# Disable check for same 32/64bit-ness in websocketpp-configVersion.cmake by setting CMAKE_SIZEOF_VOID_P
7# PR submitted upstream: https://github.com/zaphoyd/websocketpp/pull/770
8
9--- a/CMakeLists.txt 2018-10-31 13:58:03.000000000 +0100
10+++ b/CMakeLists.txt 2018-10-31 14:21:06.251424022 +0100
11@@ -266,9 +266,11 @@
12 INSTALL_DESTINATION "${INSTALL_CMAKE_DIR}"
13 NO_CHECK_REQUIRED_COMPONENTS_MACRO
14 )
15+# disable check for same 32/64bit-ness in websocketpp-configVersion.cmake by setting CMAKE_SIZEOF_VOID_P
16+set (CMAKE_SIZEOF_VOID_P "")
17 write_basic_package_version_file("${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/websocketpp-configVersion.cmake"
18 VERSION ${WEBSOCKETPP_VERSION}
19- COMPATIBILITY ExactVersion)
20+ COMPATIBILITY AnyNewerVersion)
21
22 # Install the websocketpp-config.cmake and websocketpp-configVersion.cmake
23 install (FILES
This page took 0.070646 seconds and 4 git commands to generate.