AcademySoftwareFoundation / AcademySoftwareFoundation/OpenColorIO

find_package(OpenColorIO) broken under cmake 3.29.1

オープン
#1,964 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
Build Issue
主要言語
C++
スター
2.1k
フォーク
505
PR マージ指標
30日以内にマージされた PR はありません

説明

With the recent update of cmake to v3.29.1 (v3.29 was okay before) of GitHub Actions, OpenColorIO started failing not finding its dependencies:
```
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.29.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (EXPAT) does
not match the name of the calling package (expat). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.29.1/share/cmake/Modules/Findexpat.cmake:114 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
/opt/homebrew/Cellar/cmake/3.29.1/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
build/install/lib/cmake/OpenColorIO/OpenColorIOConfig.cmake:33 (find_dependency)
CMakeLists.txt:163 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found EXPAT: /Users/runner/work/tlRender/tlRender/build/install/lib/libexpat.a (found version "2.5.0")
CMake Error at CMakeLists.txt:163 (find_package):
Found package configuration file:

/Users/runner/work/tlRender/tlRender/build/install/lib/cmake/OpenColorIO/OpenColorIOConfig.cmake

but it set OpenColorIO_FOUND to FALSE so package "OpenColorIO" is
considered to be NOT FOUND. Reason given by package:

OpenColorIO could not be found because dependency expat could not be found.

-- Configuring incomplete, errors occurred!
```

On macOS it fails on expat. On Linux it fails with pystring.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、CMakeLists.txt:163 で発生する CMake 3.29.1 の GitHub Actions 設定失敗を再現します。build/install/lib/cmake/OpenColorIO/OpenColorIOConfig.cmake を調べ、macOS での expat の失敗と Linux での pystring の失敗を比較します。find_package(OpenColorIO) が両方のプラットフォームで正常に設定されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cmake
領域
build-system
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。