Skip to Main Content
Modern CMake for C++
book

Modern CMake for C++

by Rafał Świdziński
February 2022
Intermediate to advanced content levelIntermediate to advanced
460 pages
9h 35m
English
Packt Publishing
Content preview from Modern CMake for C++

Chapter 2: The CMake Language

Writing in the CMake Language is a bit tricky. When you read a CMake listfile for the first time, you may be under the impression that the language in it is so simple that it doesn't require any special training or preparation. What follows is very often a practical attempt to introduce changes and experiment with the code without a thorough understanding of how it works. We programmers are usually very busy and are overly keen to tackle any build-related issues with little investment. We tend to make gut-based changes hoping they just might do the trick. This approach to solving technical problems is called voodoo programming.

The CMake Language appears simple: after we have completed our small addition, fix, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modern CMake for C++ - Second Edition

Modern CMake for C++ - Second Edition

Rafał Świdziński

Publisher Resources

ISBN: 9781801070058Supplemental Content