cmake - 找不到 CLion CMake 选项 -G "Visual Studio 15 2017"

标签 cmake clion jetbrains-ide

在 CLion 2017.2.1 ,我不知道如何设置生成器-G "Visual Studio 15 2017"在 IDE CMake 选项中。 CLion 命令行始终包含 -G "CodeBlocks - NMake Makefiles" .

在命令行上,我可以使用 cmake -G "Visual Studio 15 2017"编译我的代码。

如何设置 CLion 以使用 Visual Studio 生成器?

注意:我正在使用 Visual Studio compiler在克利翁。

最佳答案

现在在 CLion 中是不可能的。它不支持其他生成器。仅适用于 MSVC 的 NMake Makefile,以及所有其他情况下的常用 Makefile。

关于cmake - 找不到 CLion CMake 选项 -G "Visual Studio 15 2017",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45926136/

相关文章:

windows - JetBrains PyCharm : Length of PATH is bigger than 8192 bytes

ide - WebStorm 在编辑时保存文件

c++ - 使用 Cmake 和 QtCreator 时 undefined reference

c++ - 如何为模块化项目正确创建 CMake 文件

swift - Clion 无法识别我的快速工具链路径

ubuntu - 如何在 clion 中添加 libcurl

CMake 缺少环境变量错误

macos - 是否有将 linux 构建转换为 mac 构建的通用策略?

c++ - 为什么链接器错误 'multiple definitions' 只有一个库?在 Android Studio 中使用 CMake (3.4.1)

sonarqube - 将 InspectCode (Resharper) 和 OpenCover 代码覆盖率报告合并到 Sonar Qube Build 中