users: repair previous "fix"

The build failure on openSUSE is real, but the "fix" switched
the internal library accidentally to SHARED, without installing it.
It shouldn't be a library at all, really (if STATIC won't do).

FIXES #2203
This commit is contained in:
Adriaan de Groot 2023-09-28 20:50:14 +02:00
parent 44d26beb95
commit 77d489b5e5

View File

@ -45,17 +45,20 @@ set(_users_src
)
# This part of the code is shared with the usersq module
calamares_add_library(
users_internal
EXPORT_MACRO PLUGINDLLEXPORT_PRO
TARGET_TYPE OBJECT
NO_INSTALL
NO_VERSION
SOURCES
add_library(users_internal
OBJECT
${_users_src}
LINK_LIBRARIES
${USER_EXTRA_LIB}
)
target_link_libraries(users_internal
PRIVATE
${USER_EXTRA_LIB}
${Calamares_LIBRARIES}
${qtname}::Core
${qtname}::Gui
${qtname}::Widgets
)
set_target_properties(users_internal PROPERTIES COMPILE_DEFINITIONS PLUGINDLLEXPORT_PRO)
calamares_automoc(users_internal)
calamares_add_plugin(users
TYPE viewmodule