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()andfind_program()command obtained aVALIDATORoption to specify a function to verify the validity of each candidate.try_compile()andtry_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 usecmake –debug-trycompileMultiple outputs can be retained.add_subdirectory()command obtained aSYSTEMoption to enable the “SYSTEM” directory attribute in subdirectories.- increased
block()andendblock()commands to manage specific scopes (policies or variables) containing blocks of commands return()The command adds aPROPAGATEoptionsBSDandCMAKE_HOST_BSDvariable 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.
LINUXandCMAKE_HOST_LINUXvariable is now set totruewhen the target or host system is LinuxCMAKE_MSVC_DEBUG_INFORMATION_FORMATvariables andMSVC_DEBUG_INFORMATION_FORMATA 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