首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >未知的CMake命令"BISON_TARGET“

未知的CMake命令"BISON_TARGET“
EN

Stack Overflow用户
提问于 2014-03-06 05:55:13
回答 2查看 3.1K关注 0票数 1

我正在尝试在Cmake中配置和生成源代码,以便能够在MS Visual Studio2010中运行,但我得到的所有信息都是这个错误:-Unknown CMake命令"BISON_TARGET"-。以下是输出和错误列表。我已经安装了野牛。有谁知道怎么解决这个问题吗?

代码语言:javascript
运行
复制
The C compiler identification is MSVC 16.0.30319.1
The CXX compiler identification is MSVC 16.0.30319.1
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 10
Check for working CXX compiler using: Visual Studio 10 -- works
Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done
Could NOT find BISON (missing:  BISON_EXECUTABLE)  CMake Error at
src/parameters/CMakeLists.txt:16 (BISON_TARGET):   Unknown CMake command "BISON_TARGET".
EN

回答 2

Stack Overflow用户

发布于 2014-03-07 15:54:02

将CMake图形用户界面中的BISON_EXECUTABLE设置为正确的可执行路径,并重新配置缓存。

票数 3
EN

Stack Overflow用户

发布于 2019-10-12 17:19:42

在我的windows 1o环境中,必须重命名文件:

win_flex.exe --> flex.exe win_bison.exe --> bison.exe

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22210192

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档