CMake: include called with wrong number of arguments. include() only takes one file.

来源:互联网 发布:初中毕业能学php吗 编辑:程序博客网 时间:2024/05/21 18:09

CMake Error at CMakeLists.txt:34 (include): include called with wrong number of arguments. include() only takes one file.

今天在cmake配置工程时出现了一下错误:

这里写图片描述

cmakelists代码如下

这里写图片描述

是include这句话出现了错误;

上网找到了一下解决方案:http://cmake.cmake.narkive.com/4Nq9EoJt/include-called-with-wrong-number-of-arguments-error-please-help

修改include为include_directories就可以了;

这里写图片描述

暂时还不知道include和include_directories的区别,cmake语法还不是太了解;

阅读全文
0 0
原创粉丝点击