Meta: Remove serenity_lib_static() CMake helper function

Its one user (LibMain) can now just specify a STATIC library type in an
invocation of serenity_lib().
This commit is contained in:
Timothy Flynn 2024-03-26 10:02:04 -04:00 committed by Tim Flynn
parent d1e2d2a4df
commit 4c08a1e0c0
Notes: sideshowbarker 2024-07-17 06:51:10 +09:00
3 changed files with 1 additions and 19 deletions

View file

@ -71,20 +71,6 @@ if (NOT COMMAND serenity_lib)
endfunction()
endif()
if (NOT COMMAND serenity_lib_static)
function(serenity_lib_static target_name fs_name)
serenity_install_headers(${target_name})
serenity_install_sources()
add_library(${target_name} STATIC ${SOURCES} ${GENERATED_SOURCES})
set_target_properties(${target_name} PROPERTIES EXCLUDE_FROM_ALL TRUE)
set_target_properties(${target_name} PROPERTIES VERSION "serenity")
install(TARGETS ${target_name} DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL)
set_target_properties(${target_name} PROPERTIES OUTPUT_NAME ${fs_name})
serenity_generated_sources(${target_name})
serenity_set_implicit_links(${target_name})
endfunction()
endif()
function(serenity_libc target_name fs_name)
serenity_install_headers("")
serenity_install_sources()

View file

@ -315,10 +315,6 @@ function(serenity_lib name fs_name)
lagom_lib(${name} ${fs_name} LIBRARY_TYPE ${SERENITY_LIB_TYPE} SOURCES ${SOURCES} ${GENERATED_SOURCES})
endfunction()
function(serenity_lib_static name fs_name)
lagom_lib(${name} ${fs_name} LIBRARY_TYPE STATIC SOURCES ${SOURCES} ${GENERATED_SOURCES})
endfunction()
function(serenity_install_headers dir)
endfunction()

View file

@ -2,4 +2,4 @@ set(SOURCES
Main.cpp
)
serenity_lib_static(LibMain main)
serenity_lib(LibMain main TYPE STATIC)