CMake is a cross-platform automated build system. It uses a file named CMakeLists.txt to describe the build process and can generate standard build files, such as Unix Makefile or Windows Visual C++ projects/workspaces. The file CMakeLists.txt needs to be written manually, or it can be generated semi-automatically by writing scripts.

CMake 3.25.0 is released, the more important updates are as follows:

  • find_file(), find_path(), find_library() and find_program() command obtained a VALIDATOR option to specify a function to verify the validity of each candidate.
  • try_compile() and try_run() Commands got new signatures, use keyword scheduling more consistently, and don’t require specifying a binary directory.Additionally, these signatures use a unique directory per invocation, which makes it easier to use cmake –debug-trycompile Multiple outputs can be retained.
  • add_subdirectory() command obtained a SYSTEM option to enable the “SYSTEM” directory attribute in subdirectories.
  • increased block() and endblock() commands to manage specific scopes (policies or variables) containing blocks of commands
  • return() The command adds a PROPAGATE options
  • BSD and CMAKE_HOST_BSD variable is now set to a string value when the target or host system is BSD
  • The “LINUX” and “CMAKE_HOST_LINUX” variables are now set to true when the target or host system is Linux, respectively.
  • LINUX and CMAKE_HOST_LINUX variable is now set to truewhen the target or host system is Linux
  • CMAKE_MSVC_DEBUG_INFORMATION_FORMATvariables and MSVC_DEBUG_INFORMATION_FORMAT A target attribute was introduced to select the debug information format for compilers targeting the MSVC ABI.

More details can be found at: https://www.kitware.com/cmake-3-25-0-available-for-download/

#CMake #Released #Open #Source #Build #System #News Fast Delivery

Leave a Comment

Your email address will not be published. Required fields are marked *