Load/Reload CMake - Reload CMake Project
Load/Reload CMake - Reload CMake Project
https://www.jetbrains.com/help/clion/reloading-project.html
When you make changes in the CMakeLists.txt
file, CLion prompts you to reload the project.
当您在 CMakeLists.txt
文件中进行更改时,CLion 会提示您重新加载项目。
There are two options for project reload:
重新加载项目有两种选择:
Reload changes
- in this case, you reload the project once, and all the subsequent changes inCMakeLists.txt
will also require reloading.
在这种情况下,您需要重新加载项目一次,并且CMakeLists.txt
中的所有后续更改也都需要重新加载。Enable Auto-reload
- this option lets CLion silently reload the project on every change in yourCMakeLists.txt
.
使用此选项,CLion 可以在CMakeLists.txt
中的每次更改时以静默方式重新加载项目。
This is similar to selecting the Automatically reload CMake project on editing
checkbox in Settings / Preferences | Build, Execution, Deployment | CMake:
1. Automatically reload CMake project on editing
File -> Settings -> Build, Execution, Deployment
2. Reload a project
To reload a project manually when needed, use one of the following options:
要在需要时手动重新加载项目,请使用以下选项之一:
Reset Cache and Reload Project
On the main menu, choose
File | Reload CMake Project
orTools | CMake | Reload CMake Project
- In CMake tool window, click icons.
3. CMake tool window
View -> Tool Windows -> CMake
/home/yongqiang/software/clion-2019.1.4/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /home/yongqiang/CLionProjects/yongqiang
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yongqiang/CLionProjects/yongqiang/cmake-build-debug[Finished]
4. Reload CMake Project
删除 cmake-build-debug
目录,Reload CMake Project
,成功更新主工程 cmake 信息。
/home/yongqiang/software/clion-2019.1.4/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /home/yongqiang/CLionProjects/yongqiang
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- 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: /home/yongqiang/CLionProjects/yongqiang/cmake-build-debug[Finished]
Load/Reload CMake - Reload CMake Project相关推荐
- Could not find a package,configuration file provided by G2O ,G2OConfig.cmake,g2o-config.cmake
因为项目需要使用到g2o,所以自己从git上面clone下来, git clone https://github.com/RainerKuemmerle/g2o.git 然后: cd g2o mkdi ...
- vs2017 cmake android,CMake构建VS2017工程
1 安装VS2017/cmake 2 工程开发 3 生成VS2017工程 4 参考资料 1 安装VS2017/cmake 软件安装: Visual Studio官网下载Visual Studio Co ...
- linux用cmake编译,CMake使用简介(forLinux)
cmake [选项] cmake [选项] 因为source 目录在../ 所以指定../为源码目录. -G:指定构建系统,当前只想创建Linux/Unix系统标准Makefile.所以指定为Uni ...
- 【学习cmake】cmake如何使用链接库 (link_directories, LINK_LIBRARIES, target_link_libraries,FIND_PACKAGE)实践篇2
cmake中添加引用动态链接和静态链接库 ADD_EXECUTABLE(a.out ./main.cpp) TARGET_LINK_LIBRARIES(a.out /usr/lib/libeg.so) ...
- linux cmake增量编译,Cmake 设置交叉编译环境
我用的是合众达的dm6446. 一 首先安装CMAKE 下载cmake 然后解压缩,进入解压缩后的目录,依次执行 # ./bootstrap # make && make insta ...
- CMake Error: CMake was unable to find a build program corresponding to Ninja.
系统环境: $ lsb_release -a LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:g ...
- linux下cmake命令行,深入理解CMake(1): CMake命令行参数
初衷 CMake能用来编写跨平台(cross-platform)的构建规则,通过这些规则来调用各个平台的编译器.链接器,生成各个目标(静态库,静态库,或者可执行). 我第一个接触的大型C++项目是Op ...
- 【已解决】CMake Error: Cannot determine link language for target “xxx“. CMake Error: CMake can not determ
报错: CMake Error: Cannot determine link language for target "CMakeLists". CMake Error: CMak ...
- CMake Error at cmake/boost.cmake:76 (MESSAGE)
在源码安装mysql5.7系列时,出现如下错误: 错误现象: CMake Error at cmake/boost.cmake:76 (MESSAGE): You can download it wi ...
最新文章
- QTP的那些事--通过WMI获取session中的用户信息的验证码
- native2ascii插件配置
- 进程(process)和线程
- Asp.net PageBase学习总结
- [Leetcode][第309题][JAVA][最佳买卖股票时机含冷冻期][动态规划][压缩空间]
- (转载)【TP5.0】设置session有效时长+修改默认存储路径
- 【Presto】Cannot connect to discovery server for announce: Announcement failed with status code 404
- redis相关技能积累
- Linux学习笔记017---文件解压命令的使用_压缩解压
- 中文分词软件SCWS
- 第十二次课:Servlet实现用户管理
- 强大web打印控件下载 - 2019年最新支持所有浏览器-楚琳打印
- Js获取外网IP地址
- 湖北飞young使用任意路由器教程
- Kali系列之网卡地址配置
- linux 用户邮件,Linux系统邮件客户端 Exchange账户相关
- 【网络重置】WLAN消失/网络适配器黄色感叹号/无法识别无线网卡/解决方法汇总/Win10家庭版(个人留档)
- win8.1产品安装临时密钥
- GB码和BIG5码的互换技术-foxpro版-摘自csdn-faq
- Linux常用命令英文全称与中文解释 (pwd、su、df、du等)