首页 > 解决方案 > 即使 brew 安装最新,cmake 也会找到较旧的 libpng 库

问题描述

我有一个需要 1.16 版 libpng 的 Github 工作流程。但是,在 osx 上,cmake Find 会找到旧版本 1.14 的库

Run brew install libpng 
Warning: libpng 1.6.37 is already installed and up-to-date.
To reinstall 1.6.37, run:

....

-- Found PNG: /usr/local/lib/libpng.dylib (found version "1.4.12") 
-- The system seems to have a libpnb available, it will be used to support PNG files

关于如何让 cmake 找到 brew 版本的任何想法?

标签: macoscmakehomebrewgithub-actions

解决方案


推荐阅读