LIBTMUX_VERSION_MAJOR
The same version, available to the preprocessor.
Source and package
- Qualified name
-
version.hpp:: LIBTMUX _VERSION _MAJOR - Namespace
- version.hpp
- Package
- libtmux-cxx
- Source
- include/libtmux/version.hpp
-
Description#
library_version()answers what was linked; these answer what was compiled against, which is the question a consumer has to ask before using something that may not exist yet:#if LIBTMUX_VERSION_MAJOR > 0 || LIBTMUX_VERSION_MINOR >= 2Written here rather than generated into the build directory, so that
include/libtmux/stays self-contained for anyone reading or vendoring it without CMake. A test comparesLIBTMUX_VERSION_STRINGagainstlibrary_version(), which the build takes from theVERSIONfile, so the two cannot drift apart unnoticed.