From 24c1cb5b099882bc73480153cb1b5f04ce906a19 Mon Sep 17 00:00:00 2001 From: Simeon Date: Fri, 19 Jan 2024 23:14:57 +0100 Subject: [PATCH] Update to use AUTOMOC When trying to build the integrated user manual, the linker stopped with the error message "undefined reference to vtable ...". This is a subtle bug, connected to the qt preprocessor MOC. Adding "set(CMAKE_AUTOMOC ON)" to the desktop-widgets/CMakeLists.txt fixed the problem. For more information, see: https://github.com/bincrafters/community/issues/466 https://cmake.org/cmake/help/latest/prop_tgt/AUTOMOC.html Signed-off-by: Simeon Geiger --- desktop-widgets/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop-widgets/CMakeLists.txt b/desktop-widgets/CMakeLists.txt index 9bc71e5e3..4d4ed03c9 100644 --- a/desktop-widgets/CMakeLists.txt +++ b/desktop-widgets/CMakeLists.txt @@ -16,6 +16,8 @@ include_directories(. ${CMAKE_BINARY_DIR} ) +set(CMAKE_AUTOMOC ON) + add_subdirectory(preferences) set (SUBSURFACE_UI