diff --git a/components/rgbd-sources/src/algorithms/fixstars_sgm.hpp b/components/rgbd-sources/src/algorithms/fixstars_sgm.hpp
index 8102444f4a192f9bccb80c373adce52aa57347f6..d773446d784761af8fe75fd7c98db75f3d4fd10f 100644
--- a/components/rgbd-sources/src/algorithms/fixstars_sgm.hpp
+++ b/components/rgbd-sources/src/algorithms/fixstars_sgm.hpp
@@ -7,11 +7,13 @@
 
 #include <opencv2/core.hpp>
 #include <opencv2/opencv.hpp>
-#include <libsgm.h>
-#include "../disparity.hpp"
 #include <opencv2/cudastereo.hpp>
+
+#include "../disparity.hpp"
 #include <ftl/configuration.hpp>
+#include <ftl/config.h>
 
+#include <libsgm.h>
 #include "ftl/offilter.hpp"
 
 namespace ftl {