首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
C++
CMake 链接库时,如何链接指定版本的库?
auto8888
·
2021 年 1 月 8 日
· 2253 次点击
这是一个创建于 1843 天前的主题,其中的信息可能已经有所发展或是发生改变。
比如 ffmpeg 在 /usr/lib/里面既有 libavformat.so.57 又有 libavformat.so.58 。
cmake
FFmpeg
lib
usr
2 条回复
•
2021-01-08 12:05:30 +08:00
1
juzipeek
2021 年 1 月 8 日
https://cmake.org/cmake/help/latest/command/find_package.html
2
juzipeek
2021 年 1 月 8 日
可以使用 find_package 指令, 上一条回复是链接地址
关于
·
帮助文档
·
自助推广系统
·
博客
·
API
·
FAQ
·
Solana
·
884 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms ·
UTC 22:56
·
PVG 06:56
·
LAX 14:56
·
JFK 17:56
♥ Do have faith in what you're doing.
❯