Advertisement
justin_hanekom

Cmake variables

Nov 30th, 2018 (edited)
774
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 6.03 KB | None | 0 0
  1. # if you are building in-source, this is the same as CMAKE_CURRENT_SOURCE_DIR, otherwise this
  2. # is the directory where the compiled or generated files from the current CMakeLists.txt will go to
  3. MESSAGE( STATUS "CMAKE_CURRENT_BINARY_DIR: " ${CMAKE_CURRENT_BINARY_DIR} )
  4.  
  5. # this is the directory, from which cmake was started, i.e. the top level source directory
  6. MESSAGE( STATUS "CMAKE_SOURCE_DIR:         " ${CMAKE_SOURCE_DIR} )
  7.  
  8. # this is the directory where the currently processed CMakeLists.txt is located in
  9. MESSAGE( STATUS "CMAKE_CURRENT_SOURCE_DIR: " ${CMAKE_CURRENT_SOURCE_DIR} )
  10.  
  11. # contains the full path to the top level directory of your build tree
  12. MESSAGE( STATUS "PROJECT_BINARY_DIR: " ${PROJECT_BINARY_DIR} )
  13.  
  14. # contains the full path to the root of your project source directory,
  15. # i.e. to the nearest directory where CMakeLists.txt contains the PROJECT() command
  16. MESSAGE( STATUS "PROJECT_SOURCE_DIR: " ${PROJECT_SOURCE_DIR} )
  17.  
  18. # set this variable to specify a common place where CMake should put all executable files
  19. # (instead of CMAKE_CURRENT_BINARY_DIR)
  20. MESSAGE( STATUS "EXECUTABLE_OUTPUT_PATH: " ${EXECUTABLE_OUTPUT_PATH} )
  21.  
  22. # set this variable to specify a common place where CMake should put all libraries
  23. # (instead of CMAKE_CURRENT_BINARY_DIR)
  24. MESSAGE( STATUS "LIBRARY_OUTPUT_PATH:     " ${LIBRARY_OUTPUT_PATH} )
  25.  
  26. # tell CMake to search first in directories listed in CMAKE_MODULE_PATH
  27. # when you use FIND_PACKAGE() or INCLUDE()
  28. MESSAGE( STATUS "CMAKE_MODULE_PATH: " ${CMAKE_MODULE_PATH} )
  29.  
  30. # this is the complete path of the cmake which runs currently (e.g. /usr/local/bin/cmake)
  31. MESSAGE( STATUS "CMAKE_COMMAND: " ${CMAKE_COMMAND} )
  32.  
  33. # this is the CMake installation directory
  34. MESSAGE( STATUS "CMAKE_ROOT: " ${CMAKE_ROOT} )
  35.  
  36. # this is the filename including the complete path of the file where this variable is used.
  37. MESSAGE( STATUS "CMAKE_CURRENT_LIST_FILE: " ${CMAKE_CURRENT_LIST_FILE} )
  38.  
  39. # this is linenumber where the variable is used
  40. MESSAGE( STATUS "CMAKE_CURRENT_LIST_LINE: " ${CMAKE_CURRENT_LIST_LINE} )
  41.  
  42. # this is used when searching for include files e.g. using the FIND_PATH() command.
  43. MESSAGE( STATUS "CMAKE_INCLUDE_PATH: " ${CMAKE_INCLUDE_PATH} )
  44.  
  45. # this is used when searching for libraries e.g. using the FIND_LIBRARY() command.
  46. MESSAGE( STATUS "CMAKE_LIBRARY_PATH: " ${CMAKE_LIBRARY_PATH} )
  47.  
  48. # the complete system name, e.g. "Linux-2.4.22", "FreeBSD-5.4-RELEASE" or "Windows 5.1"
  49. MESSAGE( STATUS "CMAKE_SYSTEM: " ${CMAKE_SYSTEM} )
  50.  
  51. # the short system name, e.g. "Linux", "FreeBSD" or "Windows"
  52. MESSAGE( STATUS "CMAKE_SYSTEM_NAME: " ${CMAKE_SYSTEM_NAME} )
  53.  
  54. # only the version part of CMAKE_SYSTEM
  55. MESSAGE( STATUS "CMAKE_SYSTEM_VERSION: " ${CMAKE_SYSTEM_VERSION} )
  56.  
  57. # the processor name (e.g. "Intel(R) Pentium(R) M processor 2.00GHz")
  58. MESSAGE( STATUS "CMAKE_SYSTEM_PROCESSOR: " ${CMAKE_SYSTEM_PROCESSOR} )
  59.  
  60. # is TRUE on all UNIX-like OS's, including Apple OS X and CygWin
  61. MESSAGE( STATUS "UNIX: " ${UNIX} )
  62.  
  63. # is TRUE on Windows, including CygWin
  64. MESSAGE( STATUS "WIN32: " ${WIN32} )
  65.  
  66. # is TRUE on Apple OS X
  67. MESSAGE( STATUS "APPLE: " ${APPLE} )
  68.  
  69. # is TRUE when using the MinGW compiler in Windows
  70. MESSAGE( STATUS "MINGW: " ${MINGW} )
  71.  
  72. # is TRUE on Windows when using the CygWin version of cmake
  73. MESSAGE( STATUS "CYGWIN: " ${CYGWIN} )
  74.  
  75. # is TRUE on Windows when using a Borland compiler
  76. MESSAGE( STATUS "BORLAND: " ${BORLAND} )
  77.  
  78. # Microsoft compiler
  79. MESSAGE( STATUS "MSVC: " ${MSVC} )
  80. MESSAGE( STATUS "MSVC_IDE: " ${MSVC_IDE} )
  81. MESSAGE( STATUS "MSVC60: " ${MSVC60} )
  82. MESSAGE( STATUS "MSVC70: " ${MSVC70} )
  83. MESSAGE( STATUS "MSVC71: " ${MSVC71} )
  84. MESSAGE( STATUS "MSVC80: " ${MSVC80} )
  85. MESSAGE( STATUS "CMAKE_COMPILER_2005: " ${CMAKE_COMPILER_2005} )
  86.  
  87.  
  88. # set this to true if you don't want to rebuild the object files if the rules have changed,
  89. # but not the actual source files or headers (e.g. if you changed the some compiler switches)
  90. MESSAGE( STATUS "CMAKE_SKIP_RULE_DEPENDENCY: " ${CMAKE_SKIP_RULE_DEPENDENCY} )
  91.  
  92. # since CMake 2.1 the install rule depends on all, i.e. everything will be built before installing.
  93. # If you don't like this, set this one to true.
  94. MESSAGE( STATUS "CMAKE_SKIP_INSTALL_ALL_DEPENDENCY: " ${CMAKE_SKIP_INSTALL_ALL_DEPENDENCY} )
  95.  
  96. # If set, runtime paths are not added when using shared libraries. Default it is set to OFF
  97. MESSAGE( STATUS "CMAKE_SKIP_RPATH: " ${CMAKE_SKIP_RPATH} )
  98.  
  99. # set this to true if you are using makefiles and want to see the full compile and link
  100. # commands instead of only the shortened ones
  101. MESSAGE( STATUS "CMAKE_VERBOSE_MAKEFILE: " ${CMAKE_VERBOSE_MAKEFILE} )
  102.  
  103. # this will cause CMake to not put in the rules that re-run CMake. This might be useful if
  104. # you want to use the generated build files on another machine.
  105. MESSAGE( STATUS "CMAKE_SUPPRESS_REGENERATION: " ${CMAKE_SUPPRESS_REGENERATION} )
  106.  
  107.  
  108. # A simple way to get switches to the compiler is to use ADD_DEFINITIONS().
  109. # But there are also two variables exactly for this purpose:
  110.  
  111. # the compiler flags for compiling C sources
  112. MESSAGE( STATUS "CMAKE_C_FLAGS: " ${CMAKE_C_FLAGS} )
  113.  
  114. # the compiler flags for compiling C++ sources
  115. MESSAGE( STATUS "CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS} )
  116.  
  117.  
  118. # Choose the type of build.  Example: SET(CMAKE_BUILD_TYPE Debug)
  119. MESSAGE( STATUS "CMAKE_BUILD_TYPE: " ${CMAKE_BUILD_TYPE} )
  120.  
  121. # if this is set to ON, then all libraries are built as shared libraries by default.
  122. MESSAGE( STATUS "BUILD_SHARED_LIBS: " ${BUILD_SHARED_LIBS} )
  123.  
  124. # the compiler used for C files
  125. MESSAGE( STATUS "CMAKE_C_COMPILER: " ${CMAKE_C_COMPILER} )
  126.  
  127. # the compiler used for C++ files
  128. MESSAGE( STATUS "CMAKE_CXX_COMPILER: " ${CMAKE_CXX_COMPILER} )
  129.  
  130. # if the compiler is a variant of gcc, this should be set to 1
  131. MESSAGE( STATUS "CMAKE_COMPILER_IS_GNUCC: " ${CMAKE_COMPILER_IS_GNUCC} )
  132.  
  133. # if the compiler is a variant of g++, this should be set to 1
  134. MESSAGE( STATUS "CMAKE_COMPILER_IS_GNUCXX : " ${CMAKE_COMPILER_IS_GNUCXX} )
  135.  
  136. # the tools for creating libraries
  137. MESSAGE( STATUS "CMAKE_AR: " ${CMAKE_AR} )
  138. MESSAGE( STATUS "CMAKE_RANLIB: " ${CMAKE_RANLIB} )
  139.  
  140. #MESSAGE( STATUS ": " ${} )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement