mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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 <simeon.geiger@gmail.com>
This commit is contained in:
parent
9e2f7571f9
commit
24c1cb5b09
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,8 @@ include_directories(.
|
|||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
|
||||
add_subdirectory(preferences)
|
||||
|
||||
set (SUBSURFACE_UI
|
||||
|
|
Loading…
Reference in a new issue