使用 CMake 查找 STC 模块 - C++/wxWidgets
看起来 FindwxWidgets.CMake
无法从 contrib
找到 stc
模块。我的 CMakeList
文件中有以下内容。
find_package(wxWidgets COMPONENTS core base stc REQUIRED)
失败并显示消息,找不到 wxWidget。如果我从中删除 stc
,一切正常。我该如何解决这个问题?
我在 Windows 7 和 wxWidgets 2.8.11
上使用 CMake2.8
。
任何帮助将不胜感激。
It looks like FindwxWidgets.CMake
can't find stc
module from contrib
. I have the following in my CMakeList
file.
find_package(wxWidgets COMPONENTS core base stc REQUIRED)
This is failing with message, can't find wxWidget. If I remove stc
from it, all works. How can I address this issue?
I am using CMake2.8
on Windows 7 and wxWidgets 2.8.11
.
Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 bug 跟踪器,Windows 不支持查找 contrib 模块。该问题附带了一个补丁,可能会对您有所帮助。从 wxWidgets 2.9 开始,stc 库已移至 wxWidgets 的核心功能集中,因此在最新版本的 CMake 中受到支持。
According to the bug tracker finding contrib modules is not supported under Windows. There is a patch attached to that issue that might help you. As of wxWidgets 2.9 the stc library was moved into the core feature set of wxWidgets and so is supported in recent versions of CMake.