简体   繁体   中英

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.

I've tried installing swig, changing the CMakeLists.txt file all without help.

This is the code:

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.

The swig_add_module command has been deprecated since CMake 3.8. Try using the swig_add_library command instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM