Meta+LibCore: Stop linking against LibCrypt

This was only be used by "Account.cpp" which was removed in:
d8c36ed458
This commit is contained in:
rmg-x 2025-04-07 19:43:52 -05:00 committed by Jelle Raaijmakers
parent 92f5183ced
commit 514233008b
Notes: github-actions[bot] 2025-04-08 07:14:33 +00:00
2 changed files with 2 additions and 6 deletions

View file

@ -102,7 +102,7 @@ if (APPLE)
endif()
serenity_lib(LibCore core)
target_link_libraries(LibCore PRIVATE LibCrypt LibUnicode LibURL)
target_link_libraries(LibCore PRIVATE LibUnicode LibURL)
target_link_libraries(LibCore PUBLIC LibCoreMinimal)
if (APPLE)

View file

@ -319,13 +319,9 @@ add_lagom_library_install_rules(GenericClangPlugin)
add_lagom_library_install_rules(JSClangPlugin)
# Create mostly empty targets for system libraries we don't need to build for Lagom
add_library(LibCrypt INTERFACE)
if (NOT APPLE AND NOT ANDROID AND NOT EMSCRIPTEN AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" AND NOT HAIKU AND NOT WIN32)
target_link_libraries(LibCrypt INTERFACE crypt) # LibCore::Account uses crypt() but it's not in libcrypt on macOS
endif()
add_library(NoCoverage INTERFACE)
# "install" these special targets to placate CMake
install(TARGETS LibCrypt NoCoverage EXPORT LagomTargets)
install(TARGETS NoCoverage EXPORT LagomTargets)
# AK
add_serenity_subdirectory(AK)