CMake: don't default to SHARED libraries, require explicit
This commit is contained in:
parent
77d489b5e5
commit
364e940a9a
@ -62,8 +62,10 @@ function(calamares_add_library)
|
||||
add_library(${target} STATIC ${LIBRARY_SOURCES})
|
||||
elseif(LIBRARY_TARGET_TYPE STREQUAL "MODULE")
|
||||
add_library(${target} MODULE ${LIBRARY_SOURCES})
|
||||
else() # default
|
||||
elseif(LIBRARY_TARGET_TYPE STREQUAL "SHARED")
|
||||
add_library(${target} SHARED ${LIBRARY_SOURCES})
|
||||
else() # default
|
||||
message(FATAL_ERROR "Invalid library type '${LIBRARY_TARGET_TYPE}'")
|
||||
endif()
|
||||
|
||||
calamares_automoc(${target})
|
||||
|
@ -45,6 +45,7 @@ endif()
|
||||
|
||||
calamares_add_library(calamaresui
|
||||
SOURCES ${calamaresui_SOURCES}
|
||||
TARGET_TYPE SHARED
|
||||
EXPORT_MACRO UIDLLEXPORT_PRO
|
||||
LINK_LIBRARIES
|
||||
${qtname}::Svg
|
||||
|
Loading…
Reference in New Issue
Block a user