cmake-變數(7)

This page documents variables that are provided by CMake or have meaning to CMake when set by project code.

For general information on variables, see the Variables section in the cmake-language manual.

備註

CMake reserves identifiers that:

  • begin with CMAKE_ (upper-, lower-, or mixed-case), or

  • begin with _CMAKE_ (upper-, lower-, or mixed-case), or

  • begin with _ followed by the name of any CMake Command.

提供資訊的變數

變更行為的變數

描述系統的變數

控制建置的變數

語言的變數

CTest 的變數

CPack 的變數

變數展開運算子

內部變數

CMake 有許多內部變數。其中大部分並未記載。但是,其中一些在某一時期被描述為普通變數,因此可能會在舊的程式碼中遇到。它們可能會變更,並且不推薦在專案程式碼中使用。

已棄用的提供資訊的變數

已棄用的變更行為的變數

已棄用的描述系統的變數

已棄用的控制建置的變數

已棄用的語言的變數

已棄用的 CTest 的變數