cmake - CLion 未能检测到 C/C++ 编译器 ABI 信息
问题描述
我有一个用于构建项目的自定义工具链。通过自定义工具链,我的意思是 Clang C 编译器、C++ 编译器和链接器的衍生产品。
项目构建得很好,但我无法使用 CLion 的 Intellij 功能,因为由于无法识别自定义工具链,它无法构建标签数据库(或它在后台所做的任何事情) .
因此,点击Tools
-> CMake
->Reset Cache and Reload Project
会吐出:
/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=~/<path-to-custom-toolchain>/Toolchain.cmake -G "CodeBlocks - Unix Makefiles" /Users/<project-directory>/src
-- Setting up Toolchain 1.0 at /Users/<tools>/build
-- Setting up Toolchain 1.0 at /Users/<tools>/build
-- The C compiler identification is Clang 7.0.0
-- The CXX compiler identification is Clang 7.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - failed
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Detecting CXX compile features
-- Detecting CXX compile features - failed
-- Configuring done
项目首选项的屏幕截图(这是一个链接,因为我还没有发布图像所需的代表):
项目首选项
所以我的问题是,我应该如何解决这个问题?还是这个问题超出了 CLion 的限制?还是我对问题的理解不完整?
解决方案
推荐阅读
- c - 使用 malloc() 生成链接列表
- elasticsearch - elastic4s 批量插入不适用于 Json 中的多个元素
- r - 生成多列以在 R 中对数据进行排序
- c++ - AST 类实现的类继承、ENUM 问题
- javascript - 单击复选框后,我可以在 Javascript 函数中将重力表单字段设置为所需状态吗?
- c++ - 编译器不会使用 -std=c++11 编译智能指针
- regex - 正则表达式搜索嵌套字典并在第一次匹配时停止(python)
- java - 将有效 JSON 字符串转换为 Java 中的 JSON 对象,以便我可以对其进行索引
- postgresql - AWS RDS 上的 Postgres:创建表成功,但只创建了一个我在任何地方都找不到且无法删除的关系
- memory - CPU的物理内存和RAM之间的实际差异