forked from cpp-best-practices/cmake_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to CPM, simplify (cpp-best-practices#15)
* Remove external dependencies for project_options * drastically simplify the way options are managed, using simple CMake `option` commands * move from Conan to CPM (better control over build flags, less likely to accidentally have ABI/ODR issues) * enhance defaults to focus on safety: * C++ hardening flags enabled by default * UBSan `minimal-runtime` enabled for shipping binaries when possible, for hardening * Static libraries + LTO enabled for better performance and detection of ODR violations * _FORTIFY_SOURCE level 3 enabled * checked STL for GCC enabled * basic example of a library added * automatic enabling of fuzz testing binary when possible * many various bug fixes to the build system * projects made with this template should now be fetch-content-able
- Loading branch information
Showing
45 changed files
with
1,727 additions
and
434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.