Compare commits

..

2 Commits

Author SHA1 Message Date
cbd006bae7
chore: update release info to 0.9.2 2025-02-26 20:58:16 +08:00
Pino Toscano
fc13a497d3 fix: refer to the right CMake module for Exiv2
The exiv2 library provides its own CMake config module, which is named
"exiv2". On case-sensitive systems (all the Unix systems by default)
trying to look for it as "Exiv2" does not work.

Hence properly look for "exiv2", and adapt the associated CMake
variables accoding to that.
2025-02-20 08:13:16 +01:00
3 changed files with 38 additions and 9 deletions

View File

@ -1,13 +1,13 @@
# SPDX-FileCopyrightText: 2022 - 2024 Gary Wang <git@blumia.net>
# SPDX-FileCopyrightText: 2022 - 2025 Gary Wang <git@blumia.net>
#
# SPDX-License-Identifier: MIT
cmake_minimum_required(VERSION 3.16)
project(pineapple-pictures VERSION 0.9.1) # don't forget to update NEWS file and AppStream metadata.
project(pineapple-pictures VERSION 0.9.2) # don't forget to update NEWS file and AppStream metadata.
include (GNUInstallDirs)
include (FeatureSummary)
include(GNUInstallDirs)
include(FeatureSummary)
option (EXIV2_METADATA_SUPPORT "Better image metadata support via libexiv2" ON)
option (PREFER_QT_5 "Prefer to use Qt 5" OFF)
@ -40,11 +40,11 @@ if (${QT_VERSION_MAJOR} EQUAL "6")
endif ()
if (EXIV2_METADATA_SUPPORT)
find_package(Exiv2)
set_package_properties(Exiv2 PROPERTIES
find_package(exiv2)
set_package_properties(exiv2 PROPERTIES
URL "https://www.exiv2.org"
DESCRIPTION "image metadata support"
TYPE OPTIONAL
TYPE RECOMMENDED
PURPOSE "Bring better image metadata support"
)
endif ()
@ -134,7 +134,7 @@ if (${QT_VERSION_MAJOR} EQUAL "6")
target_link_libraries (${EXE_NAME} Qt::SvgWidgets)
endif ()
if (Exiv2_FOUND)
if (exiv2_FOUND)
if(NOT TARGET Exiv2::exiv2lib AND TARGET exiv2lib)
# for exiv2 0.27.x
add_library(Exiv2::exiv2lib ALIAS exiv2lib)
@ -143,7 +143,7 @@ if (Exiv2_FOUND)
Exiv2::exiv2lib
)
target_compile_definitions(${EXE_NAME} PRIVATE
HAVE_EXIV2_VERSION="${Exiv2_VERSION}"
HAVE_EXIV2_VERSION="${exiv2_VERSION}"
)
endif ()

14
NEWS
View File

@ -1,3 +1,17 @@
Version 0.9.2
~~~~~~~~~~~~~
Released: 2025-03-05
Bugfixes:
* Refer to the right exiv2 CMake module so it can be found on Linux
Miscellaneous:
* Convert DEP5 to REUSE.toml for better REUSE compliance
* Update translations
Contributors:
Pino Toscano, TamilNeram
Version 0.9.1
~~~~~~~~~~~~~
Released: 2025-01-25

View File

@ -80,6 +80,21 @@
</screenshot>
</screenshots>
<releases>
<release type="stable" version="0.9.2" date="2025-03-05T00:00:00Z">
<description>
<p>This release fixes the following bug:</p>
<ul>
<li>Refer to the right exiv2 CMake module so it can be found on Linux</li>
</ul>
<p>This release includes the following changes:</p>
<ul>
<li>Convert DEP5 to REUSE.toml for better REUSE compliance</li>
<li>Update translations</li>
</ul>
<p>With contributions from:</p>
<p>Pino Toscano, TamilNeram</p>
</description>
</release>
<release type="stable" version="0.9.1" date="2025-01-25T00:00:00Z">
<description>
<p>This release adds the following features:</p>