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:
重新加载项目有两种选择:

  1. Reload changes - in this case, you reload the project once, and all the subsequent changes in CMakeLists.txt will also require reloading.
    在这种情况下,您需要重新加载项目一次,并且 CMakeLists.txt 中的所有后续更改也都需要重新加载。

  2. Enable Auto-reload - this option lets CLion silently reload the project on every change in your CMakeLists.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:
要在需要时手动重新加载项目,请使用以下选项之一:

  1. Reset Cache and Reload Project

  2. On the main menu, choose File | Reload CMake Project or Tools | CMake | Reload CMake Project

  1. 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相关推荐

  1. 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 ...

  2. vs2017 cmake android,CMake构建VS2017工程

    1 安装VS2017/cmake 2 工程开发 3 生成VS2017工程 4 参考资料 1 安装VS2017/cmake 软件安装: Visual Studio官网下载Visual Studio Co ...

  3. linux用cmake编译,CMake使用简介(forLinux)

    cmake [选项] cmake [选项] 因为source 目录在../  所以指定../为源码目录. -G:指定构建系统,当前只想创建Linux/Unix系统标准Makefile.所以指定为Uni ...

  4. 【学习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) ...

  5. linux cmake增量编译,Cmake 设置交叉编译环境

    我用的是合众达的dm6446. 一  首先安装CMAKE 下载cmake 然后解压缩,进入解压缩后的目录,依次执行 # ./bootstrap # make && make insta ...

  6. 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 ...

  7. linux下cmake命令行,深入理解CMake(1): CMake命令行参数

    初衷 CMake能用来编写跨平台(cross-platform)的构建规则,通过这些规则来调用各个平台的编译器.链接器,生成各个目标(静态库,静态库,或者可执行). 我第一个接触的大型C++项目是Op ...

  8. 【已解决】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 ...

  9. CMake Error at cmake/boost.cmake:76 (MESSAGE)

    在源码安装mysql5.7系列时,出现如下错误: 错误现象: CMake Error at cmake/boost.cmake:76 (MESSAGE): You can download it wi ...

最新文章

  1. QTP的那些事--通过WMI获取session中的用户信息的验证码
  2. native2ascii插件配置
  3. 进程(process)和线程
  4. Asp.net PageBase学习总结
  5. [Leetcode][第309题][JAVA][最佳买卖股票时机含冷冻期][动态规划][压缩空间]
  6. (转载)【TP5.0】设置session有效时长+修改默认存储路径
  7. 【Presto】Cannot connect to discovery server for announce: Announcement failed with status code 404
  8. redis相关技能积累
  9. Linux学习笔记017---文件解压命令的使用_压缩解压
  10. 中文分词软件SCWS
  11. 第十二次课:Servlet实现用户管理
  12. 强大web打印控件下载 - 2019年最新支持所有浏览器-楚琳打印
  13. Js获取外网IP地址
  14. 湖北飞young使用任意路由器教程
  15. Kali系列之网卡地址配置
  16. linux 用户邮件,Linux系统邮件客户端 Exchange账户相关
  17. 【网络重置】WLAN消失/网络适配器黄色感叹号/无法识别无线网卡/解决方法汇总/Win10家庭版(个人留档)
  18. win8.1产品安装临时密钥
  19. GB码和BIG5码的互换技术-foxpro版-摘自csdn-faq
  20. Linux常用命令英文全称与中文解释 (pwd、su、df、du等)

热门文章

  1. 独立设置mac的鼠标和触控板滚动方向
  2. 如何在计算机里查找pdf文件,电脑上怎么打开PDF文件 你值得一看的技巧
  3. 【安科瑞产品中心】ASJ系列智能电力继电器-安科瑞薛炯毅
  4. 冻结训练优化器学习率
  5. 搜索II 难度:提高
  6. 网络营销-----你不知道的六大特点!
  7. SIM卡尺寸标准以及Allegro封装
  8. 罗马数字转整数-----c语言实现
  9. 为什么越来越多的企业开始注重专利权?
  10. 正式赛-ZZULIOJ-1882- 蛤玮的魔法