当前位置:网站首页>CLion配置visual studio(msvc)和JOM多核编译
CLion配置visual studio(msvc)和JOM多核编译
2022-07-05 20:55:00 【胡安民】
安装visual studio(msvc)
如果你只是开发Window平台的软件时, 最好使用MSVC,这样可以使用大量的第三方lib,还有很多的构建指令,毕竟window上MSVC才是王道。从Visual Studio官网下载Visual Studio 社区版(注意需要2019版本或以下)
官网下载地址: https://visualstudio.microsoft.com/zh-hans/downloads/
如果下载不了的话,那么我这里提供百度网盘的方式
链接:https://pan.baidu.com/s/1NYDx02D4BDU6EMF2AcfYHg?pwd=1234
提取码:1234
–来自百度网盘超级会员V6的分享
然后进行安装Visual Studio ,然后设置安装目录,不然默认都是c盘,几个G呢

之后打开在工作复核,选择c++桌面开发
进入File|Settings|Build,Execution,Deployment|Toolchains,点击+号,打开Environment文件选择器,选择Visual Studio安装目录CLion自动扫描工具链,下图就是最后的结果。

设置使用的编译器,用于c代码编译
JOM 多核编译
Visual Studio 在大工程项目的编译时间较长,因为使用的是单核进行编译的,我们可以利用多核CPU的优势,实现并行编译,需要借用JOM访问Jom官网(https://wiki.qt.io/Jom)下载压缩文件,然后进行解压,然后将Jom的根路径添加到环境变量
链接:https://pan.baidu.com/s/1VSusAo7noTX-45ELvluymA?pwd=1234
提取码:1234
–来自百度网盘超级会员V6的分享

配置好之后打开Clion->settings->cmake 做如下设置

-G "NMake Makefiles JOM" , -j 8 建议自己看下cup核数

设置完成后保存重启Clion,然后在项目里点击编译,享受多核编译的快感吧


边栏推荐
- Monorepo management methodology and dependency security
- CADD course learning (7) -- Simulation of target and small molecule interaction (semi flexible docking autodock)
- haas506 2.0开发教程 - 阿里云ota - pac 固件升级(仅支持2.2以上版本)
- Analyze the knowledge transfer and sharing spirit of maker Education
- Norgen AAV extractant box instructions (including features)
- MySQL ifnull usage function
- Duchefa s0188 Chinese and English instructions of spectinomycin hydrochloride pentahydrate
- 2.<tag-哈希表, 字符串>补充: 剑指 Offer 50. 第一个只出现一次的字符 dbc
- Écrire une interface basée sur flask
- php中explode函数存在的陷阱
猜你喜欢

珍爱网微服务底层框架演进从开源组件封装到自研

Specification of protein quantitative kit for abbkine BCA method

渗透创客精神文化转化的创客教育

Phpstudy Xiaopi's MySQL Click to start and quickly flash back. It has been solved

Interpreting the daily application functions of cooperative robots

Write an interface based on flask

EN 438-7建筑覆盖物装饰用层压板材产品—CE认证

产品好不好,谁说了算?Sonar提出分析的性能指标,帮助您轻松判断产品性能及表现

Abnova DNA marker high quality control test program

教你自己训练的pytorch模型转caffe(三)
随机推荐
使用WebAssembly在浏览器端操作Excel
Material design component - use bottomsheet to show extended content (II)
表单文本框的使用(二) 输入过滤(合成事件)
MySQL ifnull usage function
ViewRootImpl和WindowManagerService笔记
Abbkine BCA法 蛋白质定量试剂盒说明书
解读协作型机器人的日常应用功能
Viewrootimpl and windowmanagerservice notes
最长摆动序列[贪心练习]
Careercup its 1.8 serial shift includes problems
科普|英语不好对NPDP考试有影响吗 ?
ProSci LAG3抗体的化学性质和应用说明
概率论机器学习的先验知识(上)
How to make ERP inventory accounts of chemical enterprises more accurate
Abbkine丨TraKine F-actin染色试剂盒(绿色荧光)方案
Abnova total RNA Purification Kit for cultured cells Chinese and English instructions
Monorepo management methodology and dependency security
Duchefa丨P1001植物琼脂中英文说明书
Comparison table of foreign lead American abbreviations
教你自己训练的pytorch模型转caffe(二)