Index: src/CMakeLists.txt
--- src/CMakeLists.txt.orig
+++ src/CMakeLists.txt
@@ -7,7 +7,9 @@ if (ENABLE_CONFIG_QT)
     add_subdirectory(configtool)
 endif()
 
-add_subdirectory(migrator)
+if (ENABLE_MIGRATOR)
+    add_subdirectory(migrator)
+endif()
 
 if (ENABLE_KCM)
     add_subdirectory(plasmathemegenerator)
