summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-17 02:48:17 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-17 02:48:17 +0300
commit8d32becc5b0fe645d1b8dc4245310ff35ebd8777 (patch)
tree26b25e949a6a787c8d85e452545e3a8bfa70de06 /src/Makefile.am
parent23f8cc7c1db313710180c0b1864a93cc76d2492d (diff)
downloadmanaverse-8d32becc5b0fe645d1b8dc4245310ff35ebd8777.tar.gz
manaverse-8d32becc5b0fe645d1b8dc4245310ff35ebd8777.tar.bz2
manaverse-8d32becc5b0fe645d1b8dc4245310ff35ebd8777.tar.xz
manaverse-8d32becc5b0fe645d1b8dc4245310ff35ebd8777.zip
Fix unit tests if build with SDL2 support.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index e9121652e..502ba1b3b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1726,6 +1726,10 @@ TESTS = manaplustests
check_PROGRAMS = manaplustests
manaplustests_CXXFLAGS = ${manaplus_CXXFLAGS} \
-DUNITTESTS
+if USE_SDL2
+manaplustests_CXXFLAGS += -DUSE_SDL2
+endif
+
manaplustests_SOURCES = ${manaplus_SOURCES} \
enums/enums_unittest.cc \
utils/xml_unittest.cc \