diff --git shell_integration/MacOSX/CMakeLists.txt shell_integration/MacOSX/CMakeLists.txt
index 99116c7..cd46f43 100644
--- shell_integration/MacOSX/CMakeLists.txt
+++ shell_integration/MacOSX/CMakeLists.txt
@@ -13,6 +13,7 @@ if(APPLE)
     "OC_APPLICATION_NAME=${APPLICATION_NAME}"
     "OC_APPLICATION_REV_DOMAIN=${APPLICATION_REV_DOMAIN}"
     "OC_SOCKETAPI_TEAM_IDENTIFIER_PREFIX=${SOCKETAPI_TEAM_IDENTIFIER_PREFIX}"
+    ${XCODEFLAGS}
     COMMENT building Mac Overlay icons
     VERBATIM)
   add_dependencies(mac_overlayplugin nextcloud) # for the ownCloud.icns to be generated