尝试在OSX上构建,但出现“没有规则可用于使目标antlr4_static”错误

时间:2019-05-26 01:45:06

标签: empirical-lang

尝试在OSX上构建,遇到以下antlr错误。需要安装antlr-runtime吗?

[ 43%] Built target antlr4_runtime
[ 43%] Built target csv_infer
[ 45%] Performing build_static step for 'antlr4_runtime'
make[4]: *** No rule to make target `antlr4_static'.  Stop.
make[3]: *** [antlr4_runtime/src/antlr4_runtime-stamp/antlr4_runtime-build_static] Error 2
make[2]: *** [CMakeFiles/antlr4_runtime-build_static.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [dev] Error 2

1 个答案:

答案 0 :(得分:0)

现在是fixed

CMake 3.14更改了ExternalProject模块构建源的位置。无法找到ANTLR自己的CMake文件,因此需要更改WORKING_DIRECTORY