Exiv2/exiv2

CMake Error for exiv2 >= v0.28.0 for -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14

MStraeten opened this issue · 2 comments

Describe the bug

haven't seen a minimum macOS requirement for exiv2, so tried building recent releases for use with 10.14 using macports.

cmake -B build -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 breaks with

CMake Error at cmake/FindFilesystem.cmake:246 (message):
  Cannot run simple program using std::filesystem
Call Stack (most recent call first):
  cmake/findDependencies.cmake:38 (find_package)
  CMakeLists.txt:81 (include)

up to v0.27.7 exiv2 builds fine for macOS 10.14; v0.28.0 expects at least macOS 10.15

Issue or just no further compatibility for old stuff ...?

Desktop (please complete the following information):

  • OS and version: macOS Sonoma 14.5, Xcode command line tools 15.4, macports configured to build for x86_64 (arch -x86_64 zsh)
  • Exiv2 version and source: 0.28.0 from exiv2.org
  • Compiler and version:
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: x86_64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Issue or just no further compatibility for old stuff ...?

Indeed, 0.28.x made some big changes requiring C++17, and as the CMake error message says, std::filesystem (or std::experimental::filesystem).

We'll need a macOS developer to help out here to tell us if that feature is really unavailable on 10.14, or we have a real CMake detection bug...

Yep, doesn't look like our bug: https://stackoverflow.com/a/58668083