CMake Version Compatibility Matrix/Variables
From KitwarePublic
Jump to navigationJump to search
Variables
Variables That Change Behavior
CMake Option | 2.8.3 | 2.8.2 | 2.8.1 | 2.8.0 | 2.6-patch 4 | 2.6-patch 3 | 2.6-patch 2 | 2.6-patch 1 | 2.6-patch 0 |
---|---|---|---|---|---|---|---|---|---|
BUILD_SHARED_LIBS | X | X | X | X | X | X | X | X | X |
CMAKE_BACKWARDS_COMPATIBILITY | X | X | X | X | X | X | X | X | X |
CMAKE_BUILD_TYPE | X | X | X | X | X | X | X | X | X |
CMAKE_COLOR_MAKEFILE | X | X | X | X | X | X | - | - | - |
CMAKE_CONFIGURATION_TYPES | X | X | X | X | X | X | X | X | X |
CMAKE_FIND_LIBRARY_PREFIXES | X | X | X | X | X | X | X | X | X |
CMAKE_FIND_LIBRARY_SUFFIXES | X | X | X | X | X | X | X | X | X |
CMAKE_IGNORE_PATH | X | - | - | - | - | - | - | - | - |
CMAKE_INCLUDE_PATH | X | X | X | X | X | X | X | X | - |
CMAKE_INSTALL_PREFIX | X | X | X | X | X | X | X | X | X |
CMAKE_LIBRARY_PATH | X | X | X | X | X | X | X | X | - |
CMAKE_MFC_FLAG | X | X | X | X | X | X | X | X | X |
CMAKE_MODULE_PATH | X | X | X | X | X | X | X | X | X |
CMAKE_NOT_USING_CONFIG_FLAGS | X | X | X | X | X | X | X | X | X |
CMAKE_PREFIX_PATH | X | X | X | X | X | X | X | X | - |
CMAKE_PROGRAM_PATH | X | X | X | X | X | X | X | X | - |
CMAKE_SKIP_INSTALL_ALL_DEPENDENCY | X | X | X | X | - | - | - | - | - |
CMAKE_SYSTEM_IGNORE_PATH | X | - | - | - | - | - | - | - | - |
CMAKE_SYSTEM_INCLUDE_PATH | X | X | X | X | X | X | X | X | - |
CMAKE_SYSTEM_LIBRARY_PATH | X | X | X | X | X | X | X | X | - |
CMAKE_SYSTEM_PREFIX_PATH | X | X | X | X | X | X | X | X | - |
CMAKE_SYSTEM_PROGRAM_PATH | X | X | X | X | X | X | X | X | - |
CMAKE_USER_MAKE_RULES_OVERRIDE | X | X | X | X | X | X | X | X | X |
Variables That Describe the System
CMake Option | 2.8.3 | 2.8.2 | 2.8.1 | 2.8.0 | 2.6-patch 4 | 2.6-patch 3 | 2.6-patch 2 | 2.6-patch 1 | 2.6-patch 0 |
---|---|---|---|---|---|---|---|---|---|
APPLE | X | X | X | X | X | X | X | X | X |
BORLAND | X | X | X | X | X | X | X | X | X |
CMAKE_CL_64 | X | X | X | X | X | X | X | X | X |
CMAKE_COMPILER_2005 | X | X | X | X | X | X | X | X | X |
CMAKE_HOST_APPLE | X | X | X | X | X | X | X | X | X |
CMAKE_HOST_SYSTEM | X | X | X | X | X | X | X | X | X |
CMAKE_HOST_SYSTEM_NAME | X | X | X | X | X | X | X | X | X |
CMAKE_HOST_SYSTEM_PROCESSOR | X | X | X | X | X | X | X | X | X |
CMAKE_HOST_SYSTEM_VERSION | X | X | X | X | X | X | X | X | X |
CMAKE_HOST_UNIX | X | X | X | X | X | X | X | X | X |
CMAKE_HOST_WIN32 | X | X | X | X | X | X | X | X | X |
CMAKE_OBJECT_PATH_MAX | X | X | X | X | X | X | X | - | - |
CMAKE_SYSTEM | X | X | X | X | X | X | X | X | X |
CMAKE_SYSTEM_NAME | X | X | X | X | X | X | X | X | X |
CMAKE_SYSTEM_PROCESSOR | X | X | X | X | X | X | X | X | X |
CMAKE_SYSTEM_VERSION | X | X | X | X | X | X | X | X | X |
CYGWIN | X | X | X | X | X | X | X | X | X |
MSVC | X | X | X | X | X | X | X | X | X |
MSVC80 | X | X | X | X | X | X | X | X | X |
MSVC_IDE | X | X | X | X | X | X | X | X | X |
MSVC_VERSION | X | X | X | X | X | X | X | X | X |
UNIX | X | X | X | X | X | X | X | X | X |
WIN32 | X | X | X | X | X | X | X | X | X |
XCODE_VERSION | X | X | X | X | - | - | - | - | - |
Variables for Languages
CMake Option | 2.8.3 | 2.8.2 | 2.8.1 | 2.8.0 | 2.6-patch 4 | 2.6-patch 3 | 2.6-patch 2 | 2.6-patch 1 | 2.6-patch 0 |
---|---|---|---|---|---|---|---|---|---|
CMAKE_<LANG>_ARCHIVE_APPEND | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_ARCHIVE_CREATE | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_ARCHIVE_FINISH | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_COMPILER | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_COMPILER_ABI | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_COMPILER_ID | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_COMPILER_LOADED | X | X | X | X | - | - | - | - | - |
CMAKE_<LANG>_COMPILE_OBJECT | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_CREATE_SHARED_LIBRARY | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_CREATE_SHARED_MODULE | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_CREATE_STATIC_LIBRARY | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_FLAGS_DEBUG | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_FLAGS_MINSIZEREL | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_FLAGS_RELEASE | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_FLAGS_RELWITHDEBINFO | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_IGNORE_EXTENSIONS | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES | X | X | X | X | X | - | - | - | - |
CMAKE_<LANG>_IMPLICIT_LINK_DIRECTORIES | X | X | X | X | - | - | - | - | - |
CMAKE_<LANG>_IMPLICIT_LINK_LIBRARIES | X | X | X | X | - | - | - | - | - |
CMAKE_<LANG>_LINKER_PREFERENCE | X | X | X | X | X (changed semantics) | X | X | X | X |
CMAKE_<LANG>_LINKER_PREFERENCE_PROPAGATES | X | X | X | X | - | - | - | - | - |
CMAKE_<LANG>_LINK_EXECUTABLE | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_OUTPUT_EXTENSION | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_PLATFORM_ID | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_SIZEOF_DATA_PTR | X | X | X | X | X | X | X | X | X |
CMAKE_<LANG>_SOURCE_FILE_EXTENSIONS | X | X | X | X | X | X | X | X | X |
CMAKE_COMPILER_IS_GNU<LANG> | X | X | X | X | X | X | X | X | X |
CMAKE_INTERNAL_PLATFORM_ABI | X | X | X | X | X | X | X | X | X |
CMAKE_USER_MAKE_RULES_OVERRIDE_<LANG> | X | X | X | X | X | X | X | X | X |
Variables that Control the Build
CMake Option | 2.8.3 | 2.8.2 | 2.8.1 | 2.8.0 | 2.6-patch 4 | 2.6-patch 3 | 2.6-patch 2 | 2.6-patch 1 | 2.6-patch 0 |
---|---|---|---|---|---|---|---|---|---|
CMAKE_<CONFIG>_POSTFIX | X | X | X | X | X | X | - | - | - |
CMAKE_ARCHIVE_OUTPUT_DIRECTORY | X | X | X | X | X | X | X | X | X |
CMAKE_BUILD_WITH_INSTALL_RPATH | X | X | X | X | X | X | X | X | X |
CMAKE_DEBUG_POSTFIX | X | X | X | X | X | X | X | X | X |
CMAKE_EXE_LINKER_FLAGS | X | X | X | X | X | X | X | X | X |
CMAKE_EXE_LINKER_FLAGS_[CMAKE_BUILD_TYPE] | X | X | X | X | X | X | X | X | X |
CMAKE_Fortran_MODULE_DIRECTORY | X | X | X | X | X | X | X | X | X |
CMAKE_INCLUDE_CURRENT_DIR | X | X | X | X | - | - | - | - | - |
CMAKE_INSTALL_NAME_DIR | X | X | X | X | X | X | X | X | X |
CMAKE_INSTALL_RPATH | X | X | X | X | X | X | X | X | X |
CMAKE_INSTALL_RPATH_USE_LINK_PATH | X | X | X | X | X | X | X | X | X |
CMAKE_LIBRARY_OUTPUT_DIRECTORY | X | X | X | X | X | X | X | X | X |
CMAKE_LIBRARY_PATH_FLAG | X | X | X | X | X | X | X | X | X |
CMAKE_LINK_DEF_FILE_FLAG | X | X | X | X | X | X | X | X | X |
CMAKE_LINK_LIBRARY_FILE_FLAG | X | X | X | X | X | X | X | X | X |
CMAKE_LINK_LIBRARY_FLAG | X | X | X | X | X | X | X | X | X |
CMAKE_NO_BUILTIN_CHRPATH | X | X | X | X | - | - | - | - | - |
CMAKE_RUNTIME_OUTPUT_DIRECTORY | X | X | X | X | X | X | X | X | X |
CMAKE_SKIP_BUILD_RPATH | X | X | X | X | X | X | X | X | X |
CMAKE_USE_RELATIVE_PATHS | X | X | X | X | X | X | X | X | X |
EXECUTABLE_OUTPUT_PATH | X | X | X | X | X | X | X | X | X |
LIBRARY_OUTPUT_PATH | X | X | X | X | X | X | X | X | X |
Variables that Provide Information
CMake Option | 2.8.3 | 2.8.2 | 2.8.1 | 2.8.0 | 2.6-patch 4 | 2.6-patch 3 | 2.6-patch 2 | 2.6-patch 1 | 2.6-patch 0 |
---|---|---|---|---|---|---|---|---|---|
CMAKE_AR | X | X | X | X | X | X | X | X | X |
CMAKE_BINARY_DIR | X | X | X | X | X | X | X | X | X |
CMAKE_BUILD_TOOL | X | X | X | X | X | X | X | X | X |
CMAKE_CACHEFILE_DIR | X | X | X | X | X | X | X | X | X |
CMAKE_CACHE_MAJOR_VERSION | X | X | X | X | X | X | X | X | X |
CMAKE_CACHE_MINOR_VERSION | X | X | X | X | X | X | X | X | X |
CMAKE_CACHE_PATCH_VERSION | X | X | X | X | - | - | - | - | - |
CMAKE_CACHE_RELEASE_VERSION | - | - | - | - (deprecated) | X | X | X | X | X |
CMAKE_CFG_INTDIR | X | X | X | X | X | X | X | X | X |
CMAKE_COMMAND | X | X | X | X | X | X | X | X | X |
CMAKE_CROSSCOMPILING | X | X | X | X | X | X | X | X | X |
CMAKE_CTEST_COMMAND | X | X | X | X | X | X | X | X | X |
CMAKE_CURRENT_BINARY_DIR | X | X | X | X | X | X | X | X | X |
CMAKE_CURRENT_LIST_DIR | X | - | - | - | - | - | - | - | - |
CMAKE_CURRENT_LIST_FILE | X | X | X | X | X | X | X | X | X |
CMAKE_CURRENT_LIST_LINE | X | X | X | X | X | X | X | X | X |
CMAKE_CURRENT_SOURCE_DIR | X | X | X | X | X | X | X | X | X |
CMAKE_DL_LIBS | X | X | X | X | X | X | X | X | X |
CMAKE_EDIT_COMMAND | X | X | X | X | X | X | X | X | X |
CMAKE_EXECUTABLE_SUFFIX | X | X | X | X | X | X | X | X | X |
CMAKE_EXTRA_GENERATOR | X | X | X | - | - | - | - | - | - |
CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES | X | X | X | X | - | - | - | - | - |
CMAKE_GENERATOR | X | X | X | X | X | X | X | X | X |
CMAKE_HOME_DIRECTORY | X | X | X | X | X | X | X | X | X |
CMAKE_IMPORT_LIBRARY_PREFIX | X | X | X | X | X | X | X | X | X |
CMAKE_IMPORT_LIBRARY_SUFFIX | X | X | X | X | X | X | X | X | X |
CMAKE_LINK_LIBRARY_SUFFIX | X | X | X | X | X | X | X | X | X |
CMAKE_MAJOR_VERSION | X | X | X | X | X | X | X | X | X |
CMAKE_MAKE_PROGRAM | X | X | X | X | X | X | X | X | X |
CMAKE_MINOR_VERSION | X | X | X | X | X | X | X | X | X |
CMAKE_PARENT_LIST_FILE | X | X | X | X | X | X | X | X | X |
CMAKE_PATCH_VERSION | X | X | X | X | X | X | - | - | - |
CMAKE_PROJECT_NAME | X | X | X | X | X | X | X | X | X |
CMAKE_RANLIB | X | X | X | X | X | X | X | X | X |
CMAKE_ROOT | X | X | X | X | X | X | X | X | X |
CMAKE_SHARED_LIBRARY_PREFIX | X | X | X | X | X | X | X | X | X |
CMAKE_SHARED_LIBRARY_SUFFIX | X | X | X | X | X | X | X | X | X |
CMAKE_SHARED_MODULE_PREFIX | X | X | X | X | X | X | X | X | X |
CMAKE_SHARED_MODULE_SUFFIX | X | X | X | X | X | X | X | X | X |
CMAKE_SIZEOF_VOID_P | X | X | X | X | X | X | X | X | X |
CMAKE_SKIP_RPATH | X | X | X | X | X | X | X | X | X |
CMAKE_SOURCE_DIR | X | X | X | X | X | X | X | X | X |
CMAKE_STANDARD_LIBRARIES | X | X | X | X | X | X | X | X | X |
CMAKE_STATIC_LIBRARY_PREFIX | X | X | X | X | X | X | X | X | X |
CMAKE_STATIC_LIBRARY_SUFFIX | X | X | X | X | X | X | X | X | X |
CMAKE_TWEAK_VERSION | X | X | - | - | - | - | - | - | - |
CMAKE_USING_VC_FREE_TOOLS | X | X | X | X | X | X | X | X | X |
CMAKE_VERBOSE_MAKEFILE | X | X | X | X | X | X | X | X | X |
CMAKE_VERSION | X | X | X | X | X | X | - | - | - |
PROJECT_BINARY_DIR | X | X | X | X | X | X | X | X | X |
PROJECT_NAME | X | X | X | X | X | X | X | X | X |
PROJECT_SOURCE_DIR | X | X | X | X | X | X | X | X | X |
[Project name]_BINARY_DIR | X | X | X | X | X | X | X | X | X |
[Project name]_SOURCE_DIR | X | X | X | X | X | X | X | X | X |