最終更新:2012-03-06 (火) 19:31:18 (4427d)  

CMakeCache.txt
Top / CMakeCache.txt

Configureするときにビルド先のルートに生成される。cunfigureの際に生成される設定とかのキャッシュファイル。

What is the CMake cache?

  • The cache is best thought of as a configuration file. Indeed Unix users could consider the cache as equivalent to the set of flags passed to the configure command.
  • The first time CMake is run, it produces a CMakeCache.txt file.
    • This file contains things like the existence and location of native JPEG library.
    • The entries are added in response to certain CMake commands (e.g. FIND_LIBRARY) as they are processed anywhere in CMakeLists.txt files anywhere in the source tree.
    • After CMake has been run, and created a CMakeCache.txt file - you may edit it.
  • The CMake GUI, will allow you to edit the options easily, or you can edit the file directly. The main reason for editing the cache would be to give CMake the location of a native library such as JPEG, or to stop it from using a native library and use a version of the library in your source tree.
  • CMake will not alter an existing entry in the cache file itself.
    • If your CMakeLists.txt files change significantly, you will need to remove the relevant entries from the cache file.
    • If you have not already hand-edited the cache file, you could just delete it before re-running CMake.

cmake-gui

  • Delete Cacheをするとこのファイルだけ削除される
  • 起動直後にCofigureするとこのファイルが更新される

参考