7/24/2023 0 Comments Cmake build config releaseCMake 3.26 added a new CMAKE_VS_VERSION_BUILD_NUMBER variable, available when using a Visual Studio toolchain.CMake 3.26 also added a new cmake -E copy_directory_if_different subcommand.CMake 3.26 added support for a -t option when using cmake -E copy.Mention using COMMAND_ERROR_IS_FATAL as an alternative way of checking that an execute_process() call was successful.Mention using BYPRODUCTS for intermediate files in add_custom_output().When to use COMMENT or cmake -E echo in custom commands.Updated the guidance in the Recommended Practices section for a number of cases:.COMMAND_ERROR_IS_FATAL is now used to simplify the archiver.cmake example in the Combining The Difference Approaches section.Also added a missing note that the RESULTS_VARIABLE requires CMake 3.10 or later. Added discussion of the ENCODING option for execute_process().Briefly mention the new $ generator expression added in CMake 3.26.The Perfetto performance tracing tool ( ) is now mentioned, which is the modern replacement for the legacy about:tracing tool built into some web browsers.CMake 3.26 added a new configure log, replacing the CMakeOutput.log and CMakeError.log files, and providing an improved ability to check the steps performed during a CMake configure step.Replaced mention of FindCUDA with FindCUDAToolkit, since FindCUDA has been deprecated since CMake 3.10.Improved a comment in one of the examples of the Ending Processing Early section, clarifying how return(PROPAGATE) interacts with a surrounding block().The Scope Blocks section now follows the Cache Variables section instead of interrupting the material primarily about cache variables. In particular, the Cache Variables section now includes the material about surprising behavior of variables and CMake GUI tools, both of which closely relate to cache variable usage. The chapter underwent some reorganization to improve the flow and keep related content together.Improved flow and structure in some chapters based on reader feedback.įull details of the changes are given below.The Working With Qt chapter was also significantly revised and updated for Qt 6.The Apple Features chapter was significantly revised and updated for Xcode 14.The main highlights for this edition include: The 15th Edition has been updated for the CMake 3.26 release, although the majority of the changes actually relate to updating material for other third-party tools and packages. This is part of the change history for the book Professional CMake: A Practical Guide.
0 Comments
Leave a Reply. |