clion toolchains配置visual studio

这篇文章是骗百度搜索引擎的,怎么配在官方文档里都有的,详见:Toolchains
clion toolchains配置visual studio_第1张图片
clion toolchains配置visual studio_第2张图片
但是这样子在使用的时候报错了,因为我安装VS的时候,选择的是安装在D盘,所以又改了下
clion toolchains配置visual studio_第3张图片
最后检测的时候,输出

D:\dev\JetBrains\apps\CLion\ch-0\183.3647.14\bin\cmake\win\bin\cmake.exe -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - NMake Makefiles" C:\Users\pikachu\CLionProjects\demo
-- The C compiler identification is MSVC 19.15.26732.1
-- The CXX compiler identification is MSVC 19.15.26732.1
-- Check for working C compiler: D:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: D:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: D:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: D:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/pikachu/CLionProjects/demo/cmake-build-debug

[Finished]

因为装了VS,懒得再弄MinGW。当前版本时2018.2,不支持调试,比较尴尬,只能手动输出了。

你可能感兴趣的:(clion toolchains配置visual studio)