Menu

1 / 2

Qt Creator 20 - CMake Update

Planet Qt·5 months ago
#UfkKAmVw
#qt#creator#cmake#cmakepresets#compiler
Reading 0:00
15s threshold

Here are the new CMake changes in Qt Creator 20:

CMakePresets Kits refactoring

Creation

Qt Creator has supported CMakePresets since Qt Creator 9 , but there was a drawback: the Kits that were generated for the CMakePresets were global. When using multiple projects with CMakePresets, this would result in a pollution of global Kits, and users would have to do manual cleanup themselves.

Qt Creator 20 fixes this by making the CMakePresets Kits temporary and project-specific by using the Project Name : Preset Name naming scheme.

Compiler and Qt vendor extension

You can specify the compiler for a CMake preset via the CMAKE_CXX_COMPILER , and CMAKE_C_COMPILER CMake variables, or via the CC and CXX environment variables.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.