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

@@ -1,7 +1,7 @@
/*
* This file is part of RGBDS.
*
* Copyright (c) 2014-2018, RGBDS contributors.
* Copyright (c) 2014-2020, RGBDS contributors.
*
* SPDX-License-Identifier: MIT
*/
@@ -23,10 +23,6 @@
#define trap_
#endif
#ifndef DEVELOP
#define DEVELOP 0
#endif
/* Macros for stringification */
#define STR(x) #x
#define EXPAND_AND_STR(x) STR(x)