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 aVALIDATOR
option 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-trycompile
Multiple outputs can be retained.add_subdirectory()
command obtained aSYSTEM
option 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 aPROPAGATE
optionsBSD
andCMAKE_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
andCMAKE_HOST_LINUX
variable is now set totrue
when the target or host system is LinuxCMAKE_MSVC_DEBUG_INFORMATION_FORMAT
variables andMSVC_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