diff --git a/cmake/modules/MacOSXBundleInfo.plist.in b/cmake/modules/MacOSXBundleInfo.plist.in
index 5d8fd0e109..96ac29b16a 100644
--- a/cmake/modules/MacOSXBundleInfo.plist.in
+++ b/cmake/modules/MacOSXBundleInfo.plist.in
@@ -11,7 +11,7 @@
CFBundleExecutable
@APPLICATION_EXECUTABLE@
CFBundleIconFile
- ownCloud.icns
+ @APPLICATION_EXECUTABLE@.icns
CFBundleIdentifier
@APPLICATION_REV_DOMAIN@
CFBundleInfoDictionaryVersion