SHA256
1
0
forked from pool/aws-crt-cpp
aws-crt-cpp/acc_fix-cmake-modules-path.patch
Dirk Mueller da21c9d79b Accepting request 1127897 from home:glaubitz:branches:devel:libraries:c_c++
- Update to version 0.24.7
  * Latest Submodules by @waahm7 in (#565)
- from version 0.24.6
  * Fix WSL by @waahm7 in (#563)
- from version 0.24.5
  * Unit test for removing callback severance on 5-to-3
    adapter by @xiazhvera in (#553)
  * Generate files in build directory by @sfod in (#559)
  * Update submodules to pull aws-lc build fix by @sfod in (#560)
- Refresh patches for new version
  * acc_fix-cmake-modules-path.patch

OBS-URL: https://build.opensuse.org/request/show/1127897
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/aws-crt-cpp?expand=0&rev=27
2023-11-23 09:21:35 +00:00

41 lines
1.4 KiB
Diff

diff -Nru aws-crt-cpp-0.24.7.orig/CMakeLists.txt aws-crt-cpp-0.24.7/CMakeLists.txt
--- aws-crt-cpp-0.24.7.orig/CMakeLists.txt 2023-11-13 20:37:29.000000000 +0100
+++ aws-crt-cpp-0.24.7/CMakeLists.txt 2023-11-21 12:51:17.191157144 +0100
@@ -39,11 +39,8 @@
file(TO_CMAKE_PATH "${CMAKE_INSTALL_PREFIX}" CMAKE_INSTALL_PREFIX)
endif()
-if(UNIX AND NOT APPLE)
- include(GNUInstallDirs)
-elseif(NOT DEFINED CMAKE_INSTALL_LIBDIR)
- set(CMAKE_INSTALL_LIBDIR "lib")
-endif()
+find_package(aws-c-common REQUIRED)
+set(CMAKE_MODULE_PATH ${aws-c-common_DIR})
if(${CMAKE_INSTALL_LIBDIR} STREQUAL "lib64")
set(FIND_LIBRARY_USE_LIB64_PATHS true)
@@ -348,7 +345,7 @@
endif()
install(EXPORT "${PROJECT_NAME}-targets"
- DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/${TARGET_DIR}"
+ DESTINATION "${LIB_INSTALL_DIR}/cmake/${CMAKE_PROJECT_NAME}/${TARGET_DIR}/"
NAMESPACE AWS::
COMPONENT Development)
@@ -364,11 +361,11 @@
)
install(FILES "${GENERATED_ROOT_DIR}/${PROJECT_NAME}-config.cmake"
- DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/"
+ DESTINATION "${LIB_INSTALL_DIR}/cmake/${CMAKE_PROJECT_NAME}"
COMPONENT Development)
install(FILES "${GENERATED_ROOT_DIR}/${PROJECT_NAME}-config-version.cmake"
- DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/"
+ DESTINATION "${LIB_INSTALL_DIR}/cmake/${CMAKE_PROJECT_NAME}"
COMPONENT Development)
if(NOT CMAKE_CROSSCOMPILING)