Help us understand the problem. What is going on with this article?

CMakeのModule -- CMakePrintSystemInformation使ってみた

More than 1 year has passed since last update.

CMakePrintSystemInformation 使ってみた

 使い方

include (CMakePrintSystemInformation)
するだけ。
system系の変数を標準出力に出力する。

デバッグ時とか、不具合報告時に役立つのだろう。

CMakeLists.txt
include(CMakePrintSystemInformation)

出力
```
CMAKE_SYSTEM is Darwin-14.5.0 Darwin 14.5.0
CMAKE_SYSTEM file is Platform/Darwin
CMAKE_C_COMPILER is /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
CMAKE_CXX_COMPILER is /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS is -dynamiclib -Wl,-headerpad_max_install_names
CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS is -dynamiclib -Wl,-headerpad_max_install_names
CMAKE_DL_LIBS is
CMAKE_SHARED_LIBRARY_PREFIX is lib
CMAKE_SHARED_LIBRARY_SUFFIX is .dylib
CMAKE_COMPILER_IS_GNUCC =
CMAKE_COMPILER_IS_GNUCXX =
CMAKE_CXX_CREATE_SHARED_LIBRARY is -o
CMAKE_CXX_CREATE_SHARED_MODULE is -o
CMAKE_CXX_CREATE_STATIC_LIBRARY is
CMAKE_CXX_COMPILE_OBJECT is -o -c
CMAKE_CXX_LINK_EXECUTABLE -o
CMAKE_C_CREATE_SHARED_LIBRARY is -o
CMAKE_C_CREATE_SHARED_MODULE is -o
CMAKE_C_CREATE_STATIC_LIBRARY is
CMAKE_C_COMPILE_OBJECT is -o -c
CMAKE_C_LINK_EXECUTABLE -o
CMAKE_SYSTEM_AND_CXX_COMPILER_INFO_FILE
CMAKE_SYSTEM_AND_C_COMPILER_INFO_FILE

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away