diff options
| author | Gianfranco Costamagna <costamagna.gianfranco@gmail.com> | 2018-04-29 20:02:06 +0200 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2018-05-17 08:32:26 -0700 |
| commit | 12e8c3ea698905e2ed0edd9b7f351a497a1bd68d (patch) | |
| tree | 6f65c7ba707ad2cf338bc1a99d70ecfe89f2d3b1 /meta-networking/recipes-support/cpprest/cpprest-2.10.2/fix-cmake-install.patch | |
| parent | a10bca9b090cdfd81c99f772e61c72ebd134ca45 (diff) | |
| download | meta-openembedded-12e8c3ea698905e2ed0edd9b7f351a497a1bd68d.tar.gz | |
cpprest: add new recipe based on Debian packaging
The patches were imported from the Debian repository
(https://salsa.debian.org/debian/casablanca) as of commit id 5b58637016a569a5d54714bd151a800028f77532
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
Signed-off-by: Gianfranco Costamagna <gianfranco.costamagna@abinsula.com>
Co-developed-by: Cristiano Prato <cristiano.prato@cnhind.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support/cpprest/cpprest-2.10.2/fix-cmake-install.patch')
| -rw-r--r-- | meta-networking/recipes-support/cpprest/cpprest-2.10.2/fix-cmake-install.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/cpprest/cpprest-2.10.2/fix-cmake-install.patch b/meta-networking/recipes-support/cpprest/cpprest-2.10.2/fix-cmake-install.patch new file mode 100644 index 0000000000..56fd704ad7 --- /dev/null +++ b/meta-networking/recipes-support/cpprest/cpprest-2.10.2/fix-cmake-install.patch | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | Description: install cmake files into /usr/lib/cmake/cpprestsdk | ||
| 2 | Author: Gianfranco Costamagna <locutusofborg@debian.org> | ||
| 3 | Upstream-Status: https://github.com/Microsoft/cpprestsdk/pull/737 | ||
| 4 | Forwarded: https://github.com/Microsoft/cpprestsdk/pull/737 | ||
| 5 | Last-Update: 2018-04-19 | ||
| 6 | |||
| 7 | Index: cpprest/CMakeLists.txt | ||
| 8 | =================================================================== | ||
| 9 | --- cpprest.orig/CMakeLists.txt | ||
| 10 | +++ cpprest/CMakeLists.txt | ||
| 11 | @@ -18,7 +18,6 @@ | ||
| 12 | set(WERROR ON CACHE BOOL "Treat Warnings as Errors.") | ||
| 13 | set(CPPREST_EXCLUDE_WEBSOCKETS OFF CACHE BOOL "Exclude websockets functionality.") | ||
| 14 | set(CPPREST_EXCLUDE_COMPRESSION OFF CACHE BOOL "Exclude compression functionality.") | ||
| 15 | -set(CPPREST_EXPORT_DIR lib/cpprestsdk CACHE STRING "Directory to install CMake config files.") | ||
| 16 | set(CPPREST_INSTALL_HEADERS ON CACHE BOOL "Install header files.") | ||
| 17 | set(CPPREST_INSTALL ON CACHE BOOL "Add install commands.") | ||
| 18 | |||
| 19 | @@ -63,6 +62,9 @@ | ||
| 20 | include(cmake/cpprest_find_openssl.cmake) | ||
| 21 | include(cmake/cpprest_find_websocketpp.cmake) | ||
| 22 | include(CheckIncludeFiles) | ||
| 23 | +if(UNIX) | ||
| 24 | +include(GNUInstallDirs) | ||
| 25 | +endif(UNIX) | ||
| 26 | |||
| 27 | find_package(Threads REQUIRED) | ||
| 28 | if(THREADS_HAVE_PTHREAD_ARG) | ||
| 29 | Index: cpprest/src/CMakeLists.txt | ||
| 30 | =================================================================== | ||
| 31 | --- cpprest.orig/src/CMakeLists.txt | ||
| 32 | +++ cpprest/src/CMakeLists.txt | ||
| 33 | @@ -250,21 +250,21 @@ | ||
| 34 | install( | ||
| 35 | TARGETS ${CPPREST_TARGETS} | ||
| 36 | EXPORT cpprestsdk-targets | ||
| 37 | - RUNTIME DESTINATION bin | ||
| 38 | - LIBRARY DESTINATION lib | ||
| 39 | - ARCHIVE DESTINATION lib | ||
| 40 | + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
| 41 | + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
| 42 | + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
| 43 | ) | ||
| 44 | |||
| 45 | configure_file(../cmake/cpprestsdk-config.in.cmake "${CMAKE_CURRENT_BINARY_DIR}/cpprestsdk-config.cmake" @ONLY) | ||
| 46 | |||
| 47 | install( | ||
| 48 | FILES "${CMAKE_CURRENT_BINARY_DIR}/cpprestsdk-config.cmake" | ||
| 49 | - DESTINATION ${CPPREST_EXPORT_DIR} | ||
| 50 | + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake | ||
| 51 | ) | ||
| 52 | install( | ||
| 53 | EXPORT cpprestsdk-targets | ||
| 54 | FILE cpprestsdk-targets.cmake | ||
| 55 | NAMESPACE cpprestsdk:: | ||
| 56 | - DESTINATION ${CPPREST_EXPORT_DIR} | ||
| 57 | + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake | ||
| 58 | ) | ||
| 59 | endif() | ||
