yuzu/externals/vcpkg/ports/aws-c-compression/fix-cmake-target-path.patch
2022-07-23 03:01:36 +02:00

29 lines
957 B
Diff
Executable File

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e70e013..0639229 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,7 +88,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-compression-config.cmake b/cmake/aws-c-compression-config.cmake
index d919e90..707ce3a 100644
--- a/cmake/aws-c-compression-config.cmake
+++ b/cmake/aws-c-compression-config.cmake
@@ -2,9 +2,5 @@ include(CMakeFindDependencyMacro)
find_dependency(aws-c-common)
-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)