clion toolchains配置visual studio
阿新 • • 發佈:2018-11-28
這篇文章是騙百度搜索引擎的,怎麼配在官方文件裡都有的,詳見:Toolchains
但是這樣子在使用的時候報錯了,因為我安裝VS的時候,選擇的是安裝在D盤,所以又改了下
最後檢測的時候,輸出
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,不支援除錯,比較尷尬,只能手動輸出了。