CMakeLists.txt: use transitive compile definitions via cmake by emmenlau · Pull Request #228 · SRombauts/SQLiteCpp (original) (raw)
This PR adds transitive compile definitions via cmake. When this PR is used, a slightly more "modern" syntax is employed for the compile defines SQLITE_ENABLE_COLUMN_METADATA, SQLITECPP_ENABLE_ASSERT_HANDLER, and SQLITE_USE_LEGACY_STRUCT. With this more modern syntax, its possible to specify for every flag a PUBLIC or PRIVATE visibility. With PUBLIC visibility (currently the default in this PR), downstream projects also have access to the flags.
This can be specifically helpful for SQLITE_ENABLE_COLUMN_METADATA, which downstream projects can use to tweak their code at compile time.
Please feel free to change the visibility of the individual flags. The previous default (before this PR) was PRIVATE visibility for all three flags.