vcpkg/ports/aws-c-io/fix-cmake-target-path.patch
Charles-Auguste Marois 92af1ff59a
[aws-sdk-cpp] update to 1.9.96 ()
* [aws-c-common] Update to 0.6.9

* [aws-checksums] Update to 0.1.11

* [aws-c-event-stream] Upgrade to 0.2.7

* Add aws-c-cal port

* Add s2n port

* Add port aws-c-io

* [aws-c-event-stream] Update port to 0.2.7

* Update aws-sdk-cpp port

* Add aws-c-compression port

* Add aws-c-auth port

* Add aws-c-http port

* Add aws-c-mqtt port

* Add aws-c-s3 port

* Add aws-crt-cpp port

* [aws-sdk-cpp] Update port to 1.9.91 version

* Fix port issues.

* Upgrade aws-sdk-cpp to 1.9.96
Upgrade aws-crt-cpp to 0.15.1

* Support x64-windows

* Fix format issues

* Specify supported triplets for aws libs

* Specify platforms for more aws libs

* Support x64-windows-static triplet.

* Fix format issue for aws-c-common

* Update port versions file

* Use new vcpkg cmake methods and format

* Use new vcpkg cmake methods and format

* update version

* Fix s2n port typo

* Fix s2n port typo

Co-authored-by: Jonliu1993 <13720414433@163.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2021-09-14 19:06:34 -07:00

28 lines
921 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a8a9099..a657782 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -215,7 +215,7 @@ else()
endif()
install(EXPORT "${PROJECT_NAME}-targets"
- DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}"
+ DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/"
NAMESPACE AWS::
COMPONENT Development)
diff --git a/cmake/aws-c-io-config.cmake b/cmake/aws-c-io-config.cmake
index d4bc525..72a78ec 100644
--- a/cmake/aws-c-io-config.cmake
+++ b/cmake/aws-c-io-config.cmake
@@ -7,8 +7,4 @@ endif()
find_dependency(aws-c-common)
find_dependency(aws-c-cal)
-if (BUILD_SHARED_LIBS)
- include(${CMAKE_CURRENT_LIST_DIR}/shared/@PROJECT_NAME@-targets.cmake)
-else()
- include(${CMAKE_CURRENT_LIST_DIR}/static/@PROJECT_NAME@-targets.cmake)
-endif()
+include(${CMAKE_CURRENT_LIST_DIR}/@CMAKE_PROJECT_NAME@-targets.cmake)