list — CMake 3.23.0-rc4 Documentation
https://cmake.org/cmake/help/latest/command/list.htmlNote. When specifying index values, if <element index> is 0 or greater, it is indexed from the beginning of the list, with 0 representing the first list element. If <element index> is -1 or lesser, it is indexed from the end of the list, with -1 representing the last list element. Be careful when counting with negative indices: they do not start from 0. -0 is equivalent to 0, the first list elem
CMake で変数を利用する - GitHub Pages
https://leico.github.io/TechnicalNote/CMake/step223.06.2019 · CMAKE: Print out all accessible variables in a script - Stack Overflow 変数を利用する Adding a Version Number and Configured Header File The first feature we will add is to provide our executable and project with a version number. While you can do this exclusively in the source code, doing it in the CMakeLists.txt file provides more flexibility.
message — CMake 3.23.0-rc2 Documentation
cmake.org › cmake › helpThe CMake command-line tool displays STATUS to TRACE messages on stdout with the message preceded by two hyphens and a space. All other message types are sent to stderr and are not prefixed with hyphens. The CMake GUI displays all messages in its log area. The curses interface shows STATUS to TRACE messages one at a time on a status line and ...
Debugging · Modern CMake - GitLab
cliutils.gitlab.io › modern-cmake › chaptersinclude (CMakePrintHelpers) cmake_print_variables(MY_VARIABLE) If you want to print out a property, this is much, much nicer! Instead of getting the properties one by one of of each target (or other item with properties, such as SOURCES , DIRECTORIES , TESTS , or CACHE_ENTRIES - global properties seem to be missing for some reason), you can ...