CMakeのModule -- CMakePrintSystemInformation使ってみた
CMakePrintSystemInformation 使ってみた
使い方
include (CMakePrintSystemInformation)
するだけ。
system系の変数を標準出力に出力する。
デバッグ時とか、不具合報告時に役立つのだろう。
例
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
Author And Source
この問題について(CMakeのModule -- CMakePrintSystemInformation使ってみた), 我々は、より多くの情報をここで見つけました https://qiita.com/medaka5/items/89601988ed82d7ed7fa3著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .