Menu

Post image 1
Post image 2
1 / 2
0

Qt Creator 20 - CMake Update

#qt#creator#cmake#cmakepresets#compiler#kits
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. For the Qt version, one could use the toolchainFile variable to point to a qt.toolchain.cmake file, or set the CMAKE_PREFIX_PATH or QT_QMAKE_EXECUTABLE CMake variables.…

Continue reading — create a free account

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

Read More