Building with system provided cpptoml and in restrictive build environments
Hi! When building 0.3.0 as a package for Arch Linux I ran into the issue of cpptoml being a subproject requiring a wrap. This situation is problematic for several reasons:
- The wrap downloads arbitrary sources (from HEAD of an upstream!) to build with (and thus is not reproducible)
- Using this method an internet connection is required during build (some Linux distributions by now build in environments that don't allow network connection after initial retrieval of sources)
- A system provided cpptoml can not be used (an include prefix is hardcoded)
To remedy the situation we can:
- pin the wrap to its latest release version (i.e. v0.1.1 at this point in time)
- allow using a system provided cpptoml if wrap_mode is set to
nodownload
- remove the include prefix (as it is not required to begin with)