diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-30 01:14:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-30 01:14:44 +0300 |
commit | 3fcfe6db5678ecde9ca20ca058c1a603cc8abfc2 (patch) | |
tree | b8a78bf3679688652258929d8534545b7b7712fd /src | |
parent | 4029b40e800eb8654e6896576c521137835c55e2 (diff) | |
download | manaplus-3fcfe6db5678ecde9ca20ca058c1a603cc8abfc2.tar.gz manaplus-3fcfe6db5678ecde9ca20ca058c1a603cc8abfc2.tar.bz2 manaplus-3fcfe6db5678ecde9ca20ca058c1a603cc8abfc2.tar.xz manaplus-3fcfe6db5678ecde9ca20ca058c1a603cc8abfc2.zip |
Add configure option --enable-asserts
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 2fcea1281..68c8294d1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -18,6 +18,11 @@ manaplus_CXXFLAGS += -Werror dyecmd_CXXFLAGS += -Werror endif +if ENABLE_ASSERTS +manaplus_CXXFLAGS += -DENABLE_ASSERTS +dyecmd_CXXFLAGS += -DENABLE_ASSERTS +endif + if ENABLE_PUGIXML manaplus_CXXFLAGS += -DENABLE_PUGIXML dyecmd_CXXFLAGS += -DENABLE_PUGIXML @@ -1766,6 +1771,9 @@ endif if ENABLE_WERROR manaplustests_CXXFLAGS += -Werror endif +if ENABLE_ASSERTS +manaplustests_CXXFLAGS += -DENABLE_ASSERTS +endif manaplustests_SOURCES = ${manaplus_SOURCES} \ enums/enums_unittest.cc \ |