
Try_compiler(WORKING_DIRECTORY) was added.ĬMake presets in CMakePresets.json now covers configure, build and test, allowing many parameters to be declared with inheritance in JSON.ĬMake presets are a key feature for CI, as well as user configurations.Ĭtest -test-dir build option avoids the need to manually cd build.Īllows path manipulation and introspection without actually touching the filesystem.ĬMake 3.19 added support for ISPC language. The cmake -install-prefix option can be used instead of cmake -DCMAKE_INSTALL_PREFIX=.Īnd _IS_TOP_LEVEL identify if a project is at the top of the project hierarchy.Ĭtest -output-junit gives test output in standard tooling format.Īdds support for Intel LLVM compiler and NVIDIA HPC compiler.ĮxternalProject_Add() learned CONFIGURE_HANDLED_BY_BUILD which avoids CMake commanding a reconfigure on each build. Header files can be more cleanly installed/affiliated with targets, particularly relevant for packaging and installing withĬMake 3.22 adds several CMake Environment Variables that are generally useful.ĬMAKE_BUILD_TYPE default for single configuration build systems.ĬMAKE_CONFIGURATION_TYPES defaults available configurations for multi-config build systems like Ninja Multi-Config.ĬMAKE_INSTALL_MODE makes symlinks with copy fallback a good choice for installing programs from CMake.įor CTest, the new ENVIRONMENT_MODIFICATION test property makes modifying environment variables for test(s) much easier.Īdds more preset features, including making “generator” optional–the default CMake behavior will be used to determine generator. To allow debugging all find_* command, or specific find_package or find_* variables.
#Install with cmake linux generator#
The LINK_GROUP generator expression is excellent for resolving complex link dependencies.

For platforms where CMake binaries aren’t easily available, useĬMake 3.25 adds workflow presets, making configure-build-test a single command.Īdds the long-awaited cmake -Bbuild -fresh option to clean the build directory first.
