-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Minimal CMake
By :

The steps we’ve taken to streamline and simplify building our application have made a world of difference and will save time and mental energy in the future. We have unfortunately lost one thing in the process though, and that’s the ability to adjust how our dependencies are built. Previously, when we were using FetchContent
and were building the dependencies directly, we could pass through the various build options to set whether to build a particular library as static or shared. In Chapter 7, Adding Install Support for Your Libraries, when we looked at building our libraries separately and installing them manually, we could also decide how to build them. Unfortunately, with our use of ExternalProject_Add
, we’ve lost some of that flexibility as it’s not possible to pass through options directly to an ExternalProject_Add
command without a little extra scaffolding.
Fortunately, the loss of flexibility is not too difficult...