We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd78947 commit 84e507bCopy full SHA for 84e507b
src/qt/CMakeLists.txt
@@ -2,6 +2,22 @@
2
# ============
3
add_subdirectory(locale)
4
5
+# Cleanup: Remove stale Qt MOC files
6
+# ==================================
7
+# Autotools (and older build methods) generate .moc and moc_*.cpp files
8
+# directly in the source tree. These conflict with CMake's AUTOMOC.
9
+file(GLOB_RECURSE STALE_MOC_FILES
10
+ "${CMAKE_CURRENT_SOURCE_DIR}/*.moc"
11
+ "${CMAKE_CURRENT_SOURCE_DIR}/moc_*.cpp"
12
+)
13
+
14
+if(STALE_MOC_FILES)
15
+ message(STATUS "Detected stale Qt MOC files in source tree. Cleaning up...")
16
+ foreach(STALE_FILE ${STALE_MOC_FILES})
17
+ message(STATUS " Removing: ${STALE_FILE}")
18
+ file(REMOVE "${STALE_FILE}")
19
+ endforeach()
20
+endif()
21
22
# libgridcoinqt
23
# =============
0 commit comments