Skip to content

Flags

Note: auto-generated from comments in: ./flags.cmake

flags.cmake:

Compile flags supplied by F Prime, split into the two kinds they have always been:

  1. Flags required to build F Prime. Code generated by the autocoder does not compile without them, so they are carried as usage requirements on an interface target that every F Prime target links. A project consuming F Prime gets them whether or not it builds F Prime itself.
  2. Flags F Prime validates against. The warning set the framework holds itself to. Nothing needs them to build, so projects opt in by calling fprime_add_validation_flags().

Before this split both sets were listed together in the top-level CMakeLists.txt with add_compile_options, which only applies when F Prime is the top-level project.

CACHE VARIABLES: - FPRIME_REQUIRED_FLAGS_TARGET: name of the interface target carrying the required flags

Function fprime_add_validation_flags:

Adds the warning set F Prime validates against to the calling directory and below. These are not needed to build F Prime; they are the standard the framework is checked against, so a project chooses them rather than inheriting them.