CMake Version Compatibility Matrix/Commands: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(fix output_required_files: deprecated, not removed in 2.8.5)
(Add version 2.8.6)
Line 4: Line 4:
{|
{|
! CMake Option  
! CMake Option  
! 2.8.6
! 2.8.5
! 2.8.5
! 2.8.4
! 2.8.4
Line 17: Line 18:
|-
|-
| add_custom_command
| add_custom_command
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 30: Line 32:
|-
|-
| add_custom_target
| add_custom_target
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 43: Line 46:
|-
|-
| add_definitions
| add_definitions
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 56: Line 60:
|-
|-
| add_dependencies
| add_dependencies
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 69: Line 74:
|-
|-
| add_executable
| add_executable
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 82: Line 88:
|-
|-
| add_library
| add_library
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 95: Line 102:
|-
|-
| add_subdirectory
| add_subdirectory
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 108: Line 116:
|-
|-
| add_test
| add_test
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 121: Line 130:
|-
|-
| aux_source_directory
| aux_source_directory
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 134: Line 144:
|-
|-
| break
| break
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 147: Line 158:
|-
|-
| build_command
| build_command
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 160: Line 172:
|-
|-
| cmake_minimum_required
| cmake_minimum_required
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 173: Line 186:
|-
|-
| cmake_policy
| cmake_policy
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 186: Line 200:
|-
|-
| configure_file
| configure_file
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 199: Line 214:
|-
|-
| create_test_sourcelist
| create_test_sourcelist
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 212: Line 228:
|-
|-
| define_property
| define_property
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 225: Line 242:
|-
|-
| else
| else
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 238: Line 256:
|-
|-
| elseif
| elseif
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 251: Line 270:
|-
|-
| enable_language
| enable_language
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 264: Line 284:
|-
|-
| enable_testing
| enable_testing
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 277: Line 298:
|-
|-
| endforeach
| endforeach
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 290: Line 312:
|-
|-
| endfunction
| endfunction
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 303: Line 326:
|-
|-
| endif
| endif
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 316: Line 340:
|-
|-
| endmacro
| endmacro
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 329: Line 354:
|-
|-
| endwhile
| endwhile
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 342: Line 368:
|-
|-
| execute_process
| execute_process
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 355: Line 382:
|-
|-
| export
| export
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 368: Line 396:
|-
|-
| file
| file
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:yellow;" | X (missing: DOWNLOAD supports INACTIVITY_TIMEOUT; UPLOAD)
| style="background:yellow;" | X (missing: DOWNLOAD supports INACTIVITY_TIMEOUT; UPLOAD)
Line 381: Line 410:
|-
|-
| find_file
| find_file
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 394: Line 424:
|-
|-
| find_library
| find_library
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:yellow;" | X (missing: support for CMAKE_LIBRARY_ARCHITECTURE)
| style="background:yellow;" | X (missing: support for CMAKE_LIBRARY_ARCHITECTURE)
Line 408: Line 439:
| find_package
| find_package
| style="background:green;" | X
| style="background:green;" | X
| style="background:yellow;" | X (missing: support for CMAKE_DISABLE_FIND_PACKAGE_<package>)
| style="background:yellow;" | X (missing: option NO_CMAKE_SYSTEM_PACKAGE_REGISTRY; support for CMAKE_LIBRARY_ARCHITECTURE)
| style="background:yellow;" | X (missing: option NO_CMAKE_SYSTEM_PACKAGE_REGISTRY; support for CMAKE_LIBRARY_ARCHITECTURE)
| style="background:green;" | X
| style="background:green;" | X
Line 420: Line 452:
|-
|-
| find_path
| find_path
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 433: Line 466:
|-
|-
| find_program
| find_program
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 446: Line 480:
|-
|-
| fltk_wrap_ui
| fltk_wrap_ui
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 459: Line 494:
|-
|-
| foreach
| foreach
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 472: Line 508:
|-
|-
| function
| function
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 485: Line 522:
|-
|-
| get_cmake_property
| get_cmake_property
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 498: Line 536:
|-
|-
| get_directory_property
| get_directory_property
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 511: Line 550:
|-
|-
| get_filename_component
| get_filename_component
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 524: Line 564:
|-
|-
| get_property
| get_property
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 537: Line 578:
|-
|-
| get_source_file_property
| get_source_file_property
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 550: Line 592:
|-
|-
| get_target_property
| get_target_property
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 563: Line 606:
|-
|-
| get_test_property
| get_test_property
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 576: Line 620:
|-
|-
| if
| if
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 589: Line 634:
|-
|-
| include
| include
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 602: Line 648:
|-
|-
| include_directories
| include_directories
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 615: Line 662:
|-
|-
| include_external_msproject
| include_external_msproject
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 628: Line 676:
|-
|-
| include_regular_expression
| include_regular_expression
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 641: Line 690:
|-
|-
| install
| install
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 654: Line 704:
|-
|-
| link_directories
| link_directories
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 667: Line 718:
|-
|-
| list
| list
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 680: Line 732:
|-
|-
| load_cache
| load_cache
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 693: Line 746:
|-
|-
| load_command
| load_command
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 706: Line 760:
|-
|-
| macro
| macro
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 719: Line 774:
|-
|-
| mark_as_advanced
| mark_as_advanced
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 732: Line 788:
|-
|-
| math
| math
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 745: Line 802:
|-
|-
| message
| message
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 758: Line 816:
|-
|-
| option
| option
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 771: Line 830:
|-
|-
| output_required_files
| output_required_files
| style="background:red;" | -
| style="background:red;" | - (deprecated)
| style="background:red;" | - (deprecated)
| style="background:green;" | X
| style="background:green;" | X
Line 784: Line 844:
|-
|-
| project
| project
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 797: Line 858:
|-
|-
| qt_wrap_cpp
| qt_wrap_cpp
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 810: Line 872:
|-
|-
| qt_wrap_ui
| qt_wrap_ui
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 823: Line 886:
|-
|-
| remove_definitions
| remove_definitions
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 836: Line 900:
|-
|-
| return
| return
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 849: Line 914:
|-
|-
| separate_arguments
| separate_arguments
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 862: Line 928:
|-
|-
| set
| set
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 875: Line 942:
|-
|-
| set_directory_properties
| set_directory_properties
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 889: Line 957:
| set_property
| set_property
| style="background:green;" | X
| style="background:green;" | X
| style="background:yelllow;" | X (missing: APPEND_STRING)
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 901: Line 970:
|-
|-
| set_source_files_properties
| set_source_files_properties
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 915: Line 985:
| set_target_properties
| set_target_properties
| style="background:green;" | X
| style="background:green;" | X
| style="background:yellow;" | X (missing: support for VS_GLOBAL_<variable>)
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 927: Line 998:
|-
|-
| set_tests_properties
| set_tests_properties
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 940: Line 1,012:
|-
|-
| site_name
| site_name
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 953: Line 1,026:
|-
|-
| source_group
| source_group
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 966: Line 1,040:
|-
|-
| string
| string
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:yellow;" | X (missing: FIND)
| style="background:yellow;" | X (missing: FIND)
Line 979: Line 1,054:
|-
|-
| target_link_libraries
| target_link_libraries
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 992: Line 1,068:
|-
|-
| try_compile
| try_compile
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 1,005: Line 1,082:
|-
|-
| try_run
| try_run
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 1,018: Line 1,096:
|-
|-
| unset
| unset
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 1,031: Line 1,110:
|-
|-
| variable_watch
| variable_watch
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
Line 1,044: Line 1,124:
|-
|-
| while
| while
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X
| style="background:green;" | X

Revision as of 17:07, 28 October 2011

Commands

CMake Option 2.8.6 2.8.5 2.8.4 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
add_custom_command X X X X (missing: generator expressions) X X X X X X X X
add_custom_target X X X X X X X X X (missing: option SOURCES) X X X
add_definitions X X X X X X X X X X X X
add_dependencies X X X X X X X X X X X X
add_executable X X X X X X X X X X X X
add_library X X X X X X X X X X X (missing: add library type UNKNOWN) X
add_subdirectory X X X X X X X X X X X X
add_test X X X X (missing: option WORKING_DIRECTORY) X X X X - X X X
aux_source_directory X X X X X X X X X X X X
break X X X X X X X X X X X X
build_command X X X X X X X (missing: supports options CONFIGURATION, PROJECT_NAME, and TARGET) X X X X X
cmake_minimum_required X X X X X X (missing: optional .tweak to version) X X X X X X
cmake_policy X X X X X X X X X X X (missing: support GET) X
configure_file X X X X X X (missing: DOWNLOAD supports options EXPECTED_MD5 and SHOW_PROGRESS) X X X X X X
create_test_sourcelist X X X X X X X X X X X X
define_property X X X X X X X X X X X X
else X X X X X X X X X X X X
elseif X X X X X X X X X X X X
enable_language X X X X X X X X X X X X
enable_testing X X X X X X X X X X X X
endforeach X X X X X X X X X X X X
endfunction X X X X X X X X X X X X
endif X X X X X X X X X X X X
endmacro X X X X X X X X X X X X
endwhile X X X X X X X X X X X X
execute_process X X X X X X X X X X X X
export X X X X X X X X (missing: PACKAGE) X X X X
file X X X (missing: DOWNLOAD supports INACTIVITY_TIMEOUT; UPLOAD) X X X X X (missing: RENAME, COPY, INSTALL) X X X (missing: GLOB_RECURSE supports FOLLOW_SYMLINKS) X
find_file X X X X X X X X X X X X (missing: option HINTS)
find_library X X X (missing: support for CMAKE_LIBRARY_ARCHITECTURE) X X X X X X X X X (missing: option HINTS)
find_package X X (missing: support for CMAKE_DISABLE_FIND_PACKAGE_<package>) X (missing: option NO_CMAKE_SYSTEM_PACKAGE_REGISTRY; support for CMAKE_LIBRARY_ARCHITECTURE) X X (missing: sets variable <package>_CONSIDERED_CONFIGS) X X (change: doesn't search in <package>_DIR when considering CMAKE_ENVIRONMENT_PATH) X (missing: option NO_CMAKE_PACKAGE_REGISTRY) X (missing: option NO_POLICY_SCOPE; change: don't continue, if <package>_DIR is set incorrectly; doesn't check PACKAGE_VERSION_UNSUITABLE; fewer search-paths) X X (missing: sets variable PACKAGE_FIND_VERSION_TWEAK and PACKAGE_FIND_VERSION_COUNT) X (missing: option HINTS)
find_path X X X X X X X X X X X X (missing: option HINTS)
find_program X X X X X X X X X X X X (missing: option HINTS)
fltk_wrap_ui X X X X X X X X X X X X
foreach X X X X X X X X (missing: IN LISTS, IN ITEMS) X X X X
function X X X X X X X X X X X X
get_cmake_property X X X X X X X X X X X X
get_directory_property X X X X X X X X X X X X
get_filename_component X X X X X X X X X (missing: option REALPATH) X X X
get_property X X X X X X X X (missing: CACHE) X X X X
get_source_file_property X X X X X X X X X X X X
get_target_property X X X X X X X X X X X X
get_test_property X X X X X X X X X X X X
if X X X X X X X (missing: IS_SYMLINK) X (missing: allow constants, parenthesis) X X X (missing: TARGET, VERSION_LESS, VERSION_EQUAL, VERSION_GREATER) X
include X X X X X X X X X (missing: option NO_POLICY_SCOPE) X X X
include_directories X X X X X X X X X X X X
include_external_msproject X X X X X X (change: prefix created target with "INCLUDE_EXTERNAL_MSPROJECT_") X X X X X X
include_regular_expression X X X X X X X X X X X X
install X X X X X X X X (missing: DIRECTORY supports OPTIONAL) X X X X
link_directories X X X X X X X X X X X X
list X X X X X X X X X X X X
load_cache X X X X X X X X X X X X
load_command X X X X X X X X X X X X
macro X X X X X X X X X X X X
mark_as_advanced X X X X X X X X X X X X
math X X X X X X X X X X X X
message X X X X X X X X (missing: WARNING, AUTHOR_WARNING) X X X X
option X X X X X X X X X X X X
output_required_files - - (deprecated) X X X X X X X X X X
project X X X X X X X X X (missing: custom languages supported) X X X
qt_wrap_cpp X X X X X X X X X X X X
qt_wrap_ui X X X X X X X X X X X X
remove_definitions X X X X X X X X X X X X
return X X X X X X X X X X X (missing: returns from file) X
separate_arguments X X X X X X X X (missing: UNIX_COMMAND, WINDOWS_COMMAND) X X X X
set X X X X X X X X X X X X
set_directory_properties X X X X X X X X X X X X
set_property X X (missing: APPEND_STRING) X X X X X X (missing: CACHE) X X X X
set_source_files_properties X X X X X X X X X X X X
set_target_properties X X (missing: support for VS_GLOBAL_<variable>) X X X X X X X (missing: support VS_SCC_PROJECTNAME, VS_SCC_LOCALPATH, VS_SCC_PROVIDER) X X X
set_tests_properties X X X X X X X X X X X X
site_name X X X X X X X X X X X X
source_group X X X X X X X X X X X X
string X X X (missing: FIND) X X X X X (missing: RANDOM supports RANDOM_SEED) X X X X
target_link_libraries X X X X X X X X X X X (missing: option LINK_INTERFACE_LIBRARIES) X
try_compile X X X X X X X X X X X X
try_run X X X X X X X X X X X X
unset X X X X X X X X X - - -
variable_watch X X X X X X X X X X X X
while X X X X X X X X X X X X