LoginSignup
0
0

More than 1 year has passed since last update.

CMake: 定義済みの変数の値を表示する方法

Posted at

背景

CMake に関わることになった際、既存の定義がさっぱりわからなかったので、まずは表示する方法をと思った際に調べたもの

方法

  • 変数一覧を取得
  • {名前}={値} って感じで表示。
    • VERBOSE で出しても
get_cmake_property (_variableNames VARIABLES)
foreach (_variableName IN LISTS _variableNames)
  message (STATUS " ${_variableName}=${${_variableName}}")
endforeach ()

あとがき

set(LINK_LIBRARIES) で読み込んでるやつも、どうやってるのかさっぱり・・
うーん

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0