Merge tag 'v3.13.1'

Release v3.13.1 Opaline

2025-09-05 v3.13.1
  This release is ABI compatible with the last release.

  This release fixes two issues with the newly installed cmake files in 3.13.0,
  there are no changes to the library except for the version number.

  - Bug Fixes
    * b:441135035#comment9: the version number in AOMConfig.cmake is now
      correct and AOM_LIBRARIES now contains only one libaom reference; there
      is a AOM_STATIC_LIBRARIES variable for the static target.

* tag 'v3.13.1':
  CMakeLists.txt: bump LT_REVISION for v3.13.1
  CHANGELOG: add v3.13.1 entry
  config.cmake.in: fix AOM_LIBRARIES content
  CMakeLists.txt: update project version to 3.13.1

Bug: 443333642
Change-Id: I8f8b55c4aec96a0dc387420b9cbbfadb96921bf8
diff --git a/CHANGELOG b/CHANGELOG
index b7de2bf..f2a3ad2 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,14 @@
+2025-09-05 v3.13.1
+  This release is ABI compatible with the last release.
+
+  This release fixes two issues with the newly installed cmake files in 3.13.0,
+  there are no changes to the library except for the version number.
+
+  - Bug Fixes
+    * b:441135035#comment9: the version number in AOMConfig.cmake is now
+      correct and AOM_LIBRARIES now contains only one libaom reference; there
+      is a AOM_STATIC_LIBRARIES variable for the static target.
+
 2025-09-02 v3.13.0
   This release is ABI compatible with the last release.
 
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c7c513b..d0cea91 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,7 +23,7 @@
 
 # VERSION is the release version of the library. It should be updated at the
 # same time as the LT_* variables.
-project(AOM LANGUAGES C CXX VERSION 3.12.0)
+project(AOM LANGUAGES C CXX VERSION 3.13.1)
 
 # GENERATED source property global visibility.
 if(POLICY CMP0118)
@@ -59,7 +59,7 @@
 #
 # The VERSION number in project() should be updated when these variables are.
 set(LT_CURRENT 16)
-set(LT_REVISION 0)
+set(LT_REVISION 1)
 set(LT_AGE 13)
 math(EXPR SO_VERSION "${LT_CURRENT} - ${LT_AGE}")
 set(SO_FILE_VERSION "${SO_VERSION}.${LT_AGE}.${LT_REVISION}")
diff --git a/build/cmake/config.cmake.in b/build/cmake/config.cmake.in
index c1c2476..eeb9fb8 100644
--- a/build/cmake/config.cmake.in
+++ b/build/cmake/config.cmake.in
@@ -9,6 +9,14 @@
 include("${CMAKE_CURRENT_LIST_DIR}/@AOM_TARGETS_EXPORT_NAME@.cmake")
 
 set_and_check(@PROJECT_NAME@_INCLUDE_DIRS "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
-set(@PROJECT_NAME@_LIBRARIES "@AOM_INSTALL_LIBS@")
+
+# @PROJECT_NAME@::aom_static is defined only if BUILD_SHARED_LIBS=1 when libaom
+# was configured. When it is false, @PROJECT_NAME@::aom is a static library.
+if(TARGET @PROJECT_NAME@::aom_static)
+  set(@PROJECT_NAME@_STATIC_LIBRARIES "@PROJECT_NAME@::aom_static")
+else()
+  set(@PROJECT_NAME@_STATIC_LIBRARIES "@PROJECT_NAME@::aom")
+endif()
+set(@PROJECT_NAME@_LIBRARIES "@PROJECT_NAME@::aom")
 
 check_required_components(@PROJECT_NAME@)