How to clear CMake cache in Clion?

前端 未结 2 1195
伪装坚强ぢ
伪装坚强ぢ 2020-12-16 09:24

I am currently trying to swap static libraries in one of my projects which requires swapping find_package() commands for explicit links to static libraries. One of the probl

2条回答
  •  清酒与你
    2020-12-16 09:44

    Starting with CLion 1.5 144.3143 (2016-01-20), you can clear the cmake cache without loosing the CLion indexes and without restarting (meaning: very fast, also on huge projects):

    Tool | CMake | "Reset cache and reload project".
    

    If that for some reasons is not enough, or if you have an older CLion, you can do the more radical:

    File | "Invalidate Caches / Restart" 
    

    and click on "Invalidate and restart".

    EDITS

    • 2016-01-20: add the faster method available with newer CLion.

提交回复
热议问题