2023-11-23 10:21:35 +01:00
|
|
|
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 @@
|
2022-05-02 09:21:28 +02:00
|
|
|
file(TO_CMAKE_PATH "${CMAKE_INSTALL_PREFIX}" CMAKE_INSTALL_PREFIX)
|
|
|
|
endif()
|
|
|
|
|
2022-11-11 20:23:36 +01:00
|
|
|
-if(UNIX AND NOT APPLE)
|
2022-05-02 09:21:28 +02:00
|
|
|
- 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})
|
|
|
|
|
2022-11-11 20:23:36 +01:00
|
|
|
if(${CMAKE_INSTALL_LIBDIR} STREQUAL "lib64")
|
2022-05-02 09:21:28 +02:00
|
|
|
set(FIND_LIBRARY_USE_LIB64_PATHS true)
|
2023-11-23 10:21:35 +01:00
|
|
|
@@ -348,7 +345,7 @@
|
2022-05-02 09:21:28 +02:00
|
|
|
endif()
|
|
|
|
|
|
|
|
install(EXPORT "${PROJECT_NAME}-targets"
|
2022-11-11 20:23:36 +01:00
|
|
|
- DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/${TARGET_DIR}"
|
|
|
|
+ DESTINATION "${LIB_INSTALL_DIR}/cmake/${CMAKE_PROJECT_NAME}/${TARGET_DIR}/"
|
|
|
|
NAMESPACE AWS::
|
|
|
|
COMPONENT Development)
|
2022-05-02 09:21:28 +02:00
|
|
|
|
2023-11-23 10:21:35 +01:00
|
|
|
@@ -364,11 +361,11 @@
|
2022-09-09 15:15:29 +02:00
|
|
|
)
|
2022-05-02 09:21:28 +02:00
|
|
|
|
2023-11-23 10:21:35 +01:00
|
|
|
install(FILES "${GENERATED_ROOT_DIR}/${PROJECT_NAME}-config.cmake"
|
2022-11-11 20:23:36 +01:00
|
|
|
- DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/"
|
|
|
|
+ DESTINATION "${LIB_INSTALL_DIR}/cmake/${CMAKE_PROJECT_NAME}"
|
|
|
|
COMPONENT Development)
|
2022-05-02 09:21:28 +02:00
|
|
|
|
2023-11-23 10:21:35 +01:00
|
|
|
install(FILES "${GENERATED_ROOT_DIR}/${PROJECT_NAME}-config-version.cmake"
|
2022-11-11 20:23:36 +01:00
|
|
|
- DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/"
|
|
|
|
+ DESTINATION "${LIB_INSTALL_DIR}/cmake/${CMAKE_PROJECT_NAME}"
|
|
|
|
COMPONENT Development)
|
2022-09-09 15:15:29 +02:00
|
|
|
|
2022-11-11 20:23:36 +01:00
|
|
|
if(NOT CMAKE_CROSSCOMPILING)
|