diff --git a/bin/duneproject b/bin/duneproject
index d009b55095567ecf9a3589399464151e1e27ca27..5200795086394645707d0bb25583c756e3e1c07f 100755
--- a/bin/duneproject
+++ b/bin/duneproject
@@ -552,7 +552,7 @@ cat> "$PROJECT/config.h.cmake" <<EOF
 
 /* begin private */
 /* Name of package */
-#define PACKAGE "@DUNE_MOD_NAME"
+#define PACKAGE "@DUNE_MOD_NAME@"
 
 /* Define to the address where bug reports for this package should be sent. */
 #define PACKAGE_BUGREPORT "@DUNE_MAINTAINER@"