Each section represent one Cache variable used in CMDEF.
Each variable can be set from cmd line by -D option of the cmake utility if not explicitly forbidden.
Each variable has a type String unless otherwise stated.
Each section has the following format
## VAR_NAME:TYPE=DEFAULT_VALUE
1. short description
1. CMake cache type if different from String
1. fill up rules
If the DEFAULT_VALUE = <conditional> then the value definition is a part of the description.
Processor architecture of the target system.
It tries to set the variable in the following order
- filled from cmdline of the
cmakeutility by -D if specified - filled from ENV variable CMDEF_ARCHITECTURE if defined
- auto filled by CMDEF library (by
uname)
Indicate if the CMAKE_BUILD_TYPE is overridden by CMDEF library.
- If the CMAKE_BUILD_TYPE is not set the CMDEF try to set the CMAKE_BUILD_TYPE variable to the predefined value stored in CMDEF_BUILD_TYPE_DEFAULT variable. In this case the variable is set to ON.
- If the CMAKE_BUILD_TYPE is set explicitly the variable is set to OFF.
Default build type if CMAKE_BUILD_TYPE is not specified.
List of the supported build types. CMAKE_BUILD_TYPE must hold exactly one value from this list.
Type: String, List
- Default value: list of ["Debug", "Release"]
Uppercase version of CMDEF_BUILD_TYPE_LIST.
Type: String, List
- each element of the list is an uppercase version of value from CMAKE_BUILT_TYPE_LIST
- each value from CMAKE_BUILT_TYPE_LIST is present only once.
Distribution name (eg debian, ubuntu, ...). It always holds lowercase value...
It tries to set the variable in the following order
- filled from ENV variable CMDEF_DISTRO_ID if defined
- auto filled by CMDEF library (by
lsb_releaseutility)
Distribution version ID (eg for debian bullseye: 11, ...). It always holds lowercase value...
It tries to set the variable in the following order
- filled from ENV variable CMDEF_DISTRO_VERSION_ID if defined
- auto filled by CMDEF library (by
lsb_releaseutility)
Name of the company name mainly used for package
Copyright. Mainly used for the package and project description.
Suffix for the output executable name for the Debug configuration.
Name of the install directory for binary files
Name of the install directory for include files/directories
Name of the install directory for library files (.so, .a, ...)
Suffix for the output library name for the Debug configuration.
Suffix for the output dynamic library name.
Suffix for the output library name.
File extension of the Shared library.
- Set by the host system from appropriate CMDEF_LIBRARY_NAME_SUFFIX_SHARED_* var.
Linux shared library extension.
Mac OS shared library extension.
Windows shared library extension.
Only for Multi-config.
Variable holds output path where the build for each build type will be stored.