(→FindPostgreSQL.cmake) |
|||
(13 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
+ | === FindFlex.cmake === | ||
+ | |||
+ | We use the version from CMake now, which is named FindFLEX.cmake (different casing !). | ||
+ | Beside that there should be no changes in behaviour. | ||
+ | |||
+ | * find_package(Flex) -> find_package(FLEX) | ||
+ | |||
+ | === FindGettext.cmake === | ||
+ | |||
+ | We use the version from CMake now. | ||
+ | The syntax of GETTEXT_PROCESS_PO_FILES() changed a bit, it now needs the additional keyword "PO_FILES. | ||
+ | |||
+ | * gettext_process_po_files(de ALL INSTALL_DESTINATION ${dest} file1.po file2.po) -> gettext_process_po_files(de ALL INSTALL_DESTINATION ${dest} PO_FILES file1.po file2.po) | ||
+ | |||
+ | === FindGIF.cmake === | ||
+ | |||
+ | We use the version from CMake now. | ||
+ | There is a minor difference, which will not affect many systems. The KDE version accepted only giflib version 4, while the CMake version accepted any version of giflib. If giflib version 4 .x is required, the version can now be specified: | ||
+ | |||
+ | * find_package(GIF) -> find_package(GIF 4 ) | ||
+ | |||
+ | This actually only was an issue on some relatively old Sun machines in 2006. Maybe today it is not even there a problem anymore. | ||
+ | |||
+ | === FindLibXslt.cmake === | ||
+ | |||
+ | We use the version from CMake 2.8.7 now. | ||
+ | There are two changes compared to the one in kdelibs: | ||
+ | |||
+ | * ${LIBEXSLT_LIBRARIES} -> ${LIBXSLT_EXSLT_LIBRARIES} | ||
+ | * WinCE is probably not supported anymore, patches are welcome | ||
+ | |||
+ | === FindMsgfmt.cmake === | ||
+ | |||
+ | This file does not exist anymore, use GETTEXT_MSGFMT_EXECUTABLE from [[#FindGettext.cmake]] coming with CMake instead. | ||
+ | |||
+ | === FindPostgreSQL.cmake === | ||
+ | |||
+ | The variable names have changed: | ||
+ | * POSTGRESQL_INCLUDE_DIR -> PostgreSQL_INCLUDE_DIRS | ||
+ | * POSTGRESQL_LIBRARIES -> PostgreSQL_LIBRARIES | ||
+ | |||
=== FindRUBY.cmake === | === FindRUBY.cmake === | ||
Line 5: | Line 46: | ||
* find_package(RUBY) -> find_package(Ruby) | * find_package(RUBY) -> find_package(Ruby) | ||
* RUBY_INCLUDE_PATH -> RUBY_INCLUDE_DIRS | * RUBY_INCLUDE_PATH -> RUBY_INCLUDE_DIRS | ||
+ | |||
+ | === FindX11.cmake === | ||
+ | |||
+ | The following two variables have been removed, use the newer ones instead: | ||
+ | |||
+ | * X11_Xss_FOUND -> X11_Xscreensaver_FOUND | ||
+ | * X11_Xss_LIB -> X11_Xscreensaver_LIB | ||
+ | |||
+ | The following libraries are now not part of X11_LIBRARIES anymore, so they may have to be added to target_link_libraries() explicitely where needed: | ||
+ | |||
+ | * X11_Xau_LIB | ||
+ | * X11_Xft_LIB | ||
+ | * X11_Xdmcp_LIB | ||
+ | * X11_Xpm_LIB | ||
=== MacroAddCompileFlags.cmake === | === MacroAddCompileFlags.cmake === | ||
Line 26: | Line 81: | ||
* include(MacroAdditionalCleanFiles) -> delete | * include(MacroAdditionalCleanFiles) -> delete | ||
* macro_additional_clean_files(file1 file2 fileN) -> set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES "file1;file2;fileN" ) | * macro_additional_clean_files(file1 file2 fileN) -> set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES "file1;file2;fileN" ) | ||
+ | |||
+ | === MacroEnsureVersion.cmake === | ||
+ | |||
+ | This file has been removed, use VERSION_LESS or VERSION_GREATER instead. | ||
+ | Example: | ||
+ | if ( ${MY_VERSION} VERSION_LESS ${REQUIRED_VERSION} ) | ||
+ | # error, version is too old | ||
+ | endif() | ||
+ | |||
+ | === MacroLogFeature.cmake === | ||
+ | |||
+ | This file has been removed, instead FeatureSummary.cmake from CMake >= 2.8.6 has to be used, which has even more functionality. | ||
+ | Please have a look at the documentation of FeatureSummary.cmake on the cmake manpage. | ||
+ | |||
+ | * macro_log_feature(<variable> <FEATURE> <DESCRIPTION> <URL> <REQUIRED> <MIN_VERSION> <COMMENTS>) -> set_package_properties(FEATURE PROPERTIES DESCRIPTION <DESCRIPTION> URL <URL> TYPE (RUNTIME|OPTIONAL|RECOMMENDED|REQUIRED) PURPOSE "good for something") | ||
+ | |||
+ | |||
+ | * macro_display_feature_log() -> feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGE) | ||
=== MacroOptionalAddSubdirectory.cmake === | === MacroOptionalAddSubdirectory.cmake === | ||
Line 55: | Line 128: | ||
* macro_push_required_vars() -> cmake_push_check_state() | * macro_push_required_vars() -> cmake_push_check_state() | ||
* macro_pop_required_vars() -> cmake_pop_check_state() | * macro_pop_required_vars() -> cmake_pop_check_state() | ||
+ | |||
+ | === MacroWriteBasicCMakeVersionFile.cmake === | ||
+ | |||
+ | This macro has been merged into CMake, but has been renamed to WriteBasicConfigVersionFile.cmake, also the syntax changed slightly. To get exactly the same behaviour as with the old macro, do as shown below. For details see the documentation in the man page. | ||
+ | |||
+ | * include(MacroWriteBasicCMakeVersionFile) -> include (WriteBasicConfigVersionFile) | ||
+ | * macro_write_basic_cmake_version_file(<outfilename> 1 2 3) -> write_basic_config_version_file(<outfilename> VERSION 1.2.3 COMPATIBILITY AnyNewerVersion ) | ||
+ | |||
+ | === GenerateExportHeader.cmake === | ||
+ | |||
+ | This has been added to CMake and provides the generate_export_header macro. This macro is the replacement of kde4_create_exports_header. |
We use the version from CMake now, which is named FindFLEX.cmake (different casing !). Beside that there should be no changes in behaviour.
We use the version from CMake now. The syntax of GETTEXT_PROCESS_PO_FILES() changed a bit, it now needs the additional keyword "PO_FILES.
We use the version from CMake now. There is a minor difference, which will not affect many systems. The KDE version accepted only giflib version 4, while the CMake version accepted any version of giflib. If giflib version 4 .x is required, the version can now be specified:
This actually only was an issue on some relatively old Sun machines in 2006. Maybe today it is not even there a problem anymore.
We use the version from CMake 2.8.7 now. There are two changes compared to the one in kdelibs:
This file does not exist anymore, use GETTEXT_MSGFMT_EXECUTABLE from #FindGettext.cmake coming with CMake instead.
The variable names have changed:
This file does not exist anymore, use FindRuby.cmake coming with CMake instead. Most variables are the same. Below are the changes:
The following two variables have been removed, use the newer ones instead:
The following libraries are now not part of X11_LIBRARIES anymore, so they may have to be added to target_link_libraries() explicitely where needed:
This file has been removed. Use set_property(.. APPEND_STRING) instead (new in CMake 2.8.6).
This file has been removed. Use set_property(.. APPEND_STRING) instead (new in CMake 2.8.6).
This file has been removed. Use set_property(... APPEND ...) instead.
This file has been removed, use VERSION_LESS or VERSION_GREATER instead. Example:
if ( ${MY_VERSION} VERSION_LESS ${REQUIRED_VERSION} ) # error, version is too old endif()
This file has been removed, instead FeatureSummary.cmake from CMake >= 2.8.6 has to be used, which has even more functionality. Please have a look at the documentation of FeatureSummary.cmake on the cmake manpage.
This file is now part of the extra-cmake-modules package and thus has been renamed to ECMOptionalAddSubdirectory.cmake
This file has been removed, the purpose was broken.
This file does not exist anymore. Instead, starting with CMake 2.8.6, every find_package() call which is not REQUIRED can be disabled by setting the variable CMAKE_DISABLE_FIND_PACKAGE_<PackageName> to TRUE. This makes this macro unnecessary.
This file has been merged into CMake, but has been renamed to CMakePushCheckState.cmake.
This macro has been merged into CMake, but has been renamed to WriteBasicConfigVersionFile.cmake, also the syntax changed slightly. To get exactly the same behaviour as with the old macro, do as shown below. For details see the documentation in the man page.
This has been added to CMake and provides the generate_export_header macro. This macro is the replacement of kde4_create_exports_header.