diff options
author | Fabian Müller <fmueller@owncloud.com> | 2022-05-20 11:39:17 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2022-05-20 12:22:36 +0300 |
commit | 2a3b95b16f7e47056ac9e0ca6f4a555fa00c9b66 (patch) | |
tree | 68de308886ca5cf8c875cc1b759b58de862e17ff /src/gui/spaces | |
parent | b5c5d7ac8a0c0aea0a4f2a7d86fff4f7970c5c39 (diff) |
Use static libraries again
In recent CMake versions (> 3.19.2 at least), using OBJECT libraries
with Qt fails because CMake does not link AUTOMOC targets properly into
users of the OBJECT libraries. This should have been fixed in 3.20, but
apparently in our case this still is not working. Suggested workarounds
like linking Qt5::Core into the OBJECT libraries also did not yield
success.
Diffstat (limited to 'src/gui/spaces')
-rw-r--r-- | src/gui/spaces/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/spaces/CMakeLists.txt b/src/gui/spaces/CMakeLists.txt index 8485e7816..ae24f4d19 100644 --- a/src/gui/spaces/CMakeLists.txt +++ b/src/gui/spaces/CMakeLists.txt @@ -1,4 +1,4 @@ -add_library(spaces OBJECT +add_library(spaces STATIC spacesmodel.cpp spacesbrowser.cpp spacesbrowser.ui) target_link_libraries(spaces PUBLIC Qt5::Widgets libsync) set_target_properties(spaces PROPERTIES AUTOUIC ON AUTORCC ON) |