Modularize CMake build configuration

Build type no longer defaults to Release (!)
have separate options for extra warning flags and sanitizers

toss DEVELOP macro

Fix sanitizers with CMake while I'm at it :|
This commit is contained in:
James Larrowe
2020-10-04 13:11:32 -04:00
parent 3036b58598
commit 761c775043
4 changed files with 19 additions and 33 deletions

View File

@@ -14,11 +14,11 @@ jobs:
- os: ubuntu-18.04
cc: gcc
target: develop
cmakevars: -DDEVELOP=ON
cmakevars: -DSANITIZERS=ON -DMORE_WARNINGS=ON -DCMAKE_BUILD_TYPE=Debug
- os: ubuntu-20.04
cc: gcc
target: develop
cmakevars: -DDEVELOP=ON
cmakevars: -DSANITIZERS=ON -DMORE_WARNINGS=ON -DCMAKE_BUILD_TYPE=Debug
fail-fast: false
runs-on: ${{ matrix.os }}
steps: