diff --git a/grid/test/Makefile.am b/grid/test/Makefile.am
index b3ccee515790f7acd431efcda56564da32e6bda5..9ec6d07abc5d96245a0697d93427b9139995a34d 100644
--- a/grid/test/Makefile.am
+++ b/grid/test/Makefile.am
@@ -75,7 +75,7 @@ test_alberta_LDADD = $(ALBERTA_LDFLAGS) $(ALBERTA_LIBS)
 
 # files for alu3dgrid
 test_alu3dgrid_SOURCES = test-alu3dgrid.cc
-test_alu3dgrid_CXXFLAGS = $(ALU3DGRID_CPPFLAGS) $(AM_CPPFLAGS)
+test_alu3dgrid_CXXFLAGS = $(ALUGRID_CPPFLAGS) $(AM_CPPFLAGS)
 test_alu3dgrid_LDADD = $(ALUGRID_LDFLAGS) $(ALUGRID_LIBS)
 
 # libdune contains both libug2 and libug3, always test both dimensions