aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/aom/aom-rename-static.diff
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/aom/aom-rename-static.diff')
-rw-r--r--vcpkg/ports/aom/aom-rename-static.diff33
1 files changed, 33 insertions, 0 deletions
diff --git a/vcpkg/ports/aom/aom-rename-static.diff b/vcpkg/ports/aom/aom-rename-static.diff
new file mode 100644
index 0000000..f53502e
--- /dev/null
+++ b/vcpkg/ports/aom/aom-rename-static.diff
@@ -0,0 +1,33 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 2e5b623..bed61da 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -314,6 +314,15 @@ if(BUILD_SHARED_LIBS)
+ set_target_properties(aom PROPERTIES SOVERSION ${SO_VERSION})
+ set_target_properties(aom PROPERTIES VERSION ${SO_FILE_VERSION})
+ endif()
++
++ # override conditional changes
++ set_target_properties(aom PROPERTIES
++ ARCHIVE_OUTPUT_NAME aom
++ )
++ set_target_properties(aom_static PROPERTIES
++ ARCHIVE_OUTPUT_NAME aom_static
++ EXCLUDE_FROM_ALL 1
++ )
+ endif()
+
+ if(NOT WIN32 AND NOT APPLE)
+diff --git a/build/cmake/aom_install.cmake b/build/cmake/aom_install.cmake
+index b02c7b9..c219841 100644
+--- a/build/cmake/aom_install.cmake
++++ b/build/cmake/aom_install.cmake
+@@ -79,7 +79,7 @@ macro(setup_aom_install_targets)
+ endif()
+
+ if(BUILD_SHARED_LIBS)
+- set(AOM_INSTALL_LIBS aom aom_static)
++ set(AOM_INSTALL_LIBS aom)
+ else()
+ set(AOM_INSTALL_LIBS aom)
+ endif()