diff --git a/bin/duneproject b/bin/duneproject
index d2b0e938188f17111d7bdd12ab57ba808866a336..7e4cca020c8ae42c06cda75d1e262f3596863f66 100755
--- a/bin/duneproject
+++ b/bin/duneproject
@@ -850,12 +850,12 @@ get_filename_component(_prefix "\${_dir}/../.." ABSOLUTE)
 #include("\${_prefix}/lib/cmake/@DUNE_MOD_NAME@-targets.cmake")
 
 #report other information
-set(@DUNE_MOD_NAME@_INCLUDE_DIRS "\${_prefix}/include")
-set(@DUNE_MOD_NAME@_CXX_FLAGS "@CMAKE_CXX_FLAGS@")
-set(@DUNE_MOD_NAME@_CXX_FLAGS_DEBUG "@CMAKE_CXX_FLAGS_DEBUG@")
-set(@DUNE_MOD_NAME@_CXX_FLAGS_MINSIZEREL "@CMAKE_CXX_FLAGS_MINSIZEREL@")
-set(@DUNE_MOD_NAME@_CXX_FLAGS_RELEASE "@CMAKE_CXX_FLAGS_RELEASE@")
-set(@DUNE_MOD_NAME@_CXX_FLAGS_RELWITHDEBINFO "@CMAKE_CXX_FLAGS_RELWITHDEBINFO@")
+set(@DUNE_MOD_NAME_UPPERCASE@_INCLUDE_DIRS "\${_prefix}/include")
+set(@DUNE_MOD_NAME_UPPERCASE@_CXX_FLAGS "@CMAKE_CXX_FLAGS@")
+set(@DUNE_MOD_NAME_UPPERCASE@_CXX_FLAGS_DEBUG "@CMAKE_CXX_FLAGS_DEBUG@")
+set(@DUNE_MOD_NAME_UPPERCASE@_CXX_FLAGS_MINSIZEREL "@CMAKE_CXX_FLAGS_MINSIZEREL@")
+set(@DUNE_MOD_NAME_UPPERCASE@_CXX_FLAGS_RELEASE "@CMAKE_CXX_FLAGS_RELEASE@")
+set(@DUNE_MOD_NAME_UPPERCASE@_CXX_FLAGS_RELWITHDEBINFO "@CMAKE_CXX_FLAGS_RELWITHDEBINFO@")
 EOF
 
 echo "- $PROJECT/$CMAKE_NAME""Version.cmake.in"