New version of CMake 3.16.0 released

A new version of the popular build system CMake 3.16.0 and accompanying utilities CTest and CPack have been released, making it easier to test and build packages, respectively.

Major changes:

  • CMake now supports Objective-C and Objective-C++. Support is enabled by adding OBJC and OBJCXX to project() or enable_languages(). Thus, *.m- and *.mm-files will be compiled as Objective-C or C++, otherwise, as before, they will be considered C++ source files.

  • Team added target_precompile_headers()A that specifies the list of precompiled header files for the target.

  • Added target property UNITY_BUILDA that tells generators to merge source files to speed up builds.

  • The find_*() commands now support new variables that control the search.

  • The file() command can now recursively list libraries linked to a library or executable with the GET_RUNTIME_DEPENDENCIES subcommand. This subcommand replaces GetPrerequisites() .

  • CMake now has built-in true and false commands called via cmake -E, and the --loglevel option is now deprecated and will be renamed to --log-level.

Source: linux.org.ru

Add a comment