[英]Unknown CMake command 'swig_add_module'
I'm trying to run code with armanpy but it fails to compile with the error Unknown CMake command 'swig_add_module'
, the log file doesn't specify any errors only the cmd does. 我正在尝试使用armanpy运行代码,但是无法编译并显示错误
Unknown CMake command 'swig_add_module'
,日志文件未指定任何错误,只有cmd可以。
I've tried installing swig, changing the CMakeLists.txt
file all without help. 我尝试安装swig,更改
CMakeLists.txt
文件时都没有帮助。
This is the code: 这是代码:
https://sourceforge.net/p/armanpy/code/ci/master/tree/ https://sourceforge.net/p/armanpy/code/ci/master/tree/
The error happens here: 错误发生在这里:
cmake .. -DCMAKE_BUILD_TYPE=Release -DARMADILLO_INCLUDE_DIR=/path/to/your/armadillo/include
(steps from the wiki, I have changed the paths to fit my environment) I tried various variations of this step as well. (来自Wiki的步骤,我已经更改了适合我的环境的路径)我也尝试了此步骤的各种变体。
The swig_add_module
command has been deprecated since CMake 3.8. 自CMake 3.8起不推荐使用
swig_add_module
命令。 Try using the swig_add_library
command instead. 尝试改用
swig_add_library
命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.