mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
Meta: Make pthread and mman available for all libraries on Windows
by default
This commit is contained in:
parent
6fd7b9b6b9
commit
15a96e841b
Notes:
github-actions[bot]
2024-12-18 04:56:50 +00:00
Author: https://github.com/stasoid
Commit: 15a96e841b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2958
6 changed files with 10 additions and 28 deletions
|
@ -22,10 +22,6 @@ serenity_lib(LibCoreMinimal coreminimal)
|
|||
if (WIN32)
|
||||
find_path(DIRENT_INCLUDE_DIR dirent.h REQUIRED)
|
||||
target_include_directories(LibCoreMinimal PRIVATE ${DIRENT_INCLUDE_DIR})
|
||||
|
||||
find_package(mman REQUIRED)
|
||||
target_include_directories(LibCoreMinimal PRIVATE ${MMAN_INCLUDE_DIR})
|
||||
target_link_libraries(LibCoreMinimal PRIVATE ${MMAN_LIBRARY})
|
||||
endif()
|
||||
|
||||
if (LAGOM_TOOLS_ONLY)
|
||||
|
@ -116,11 +112,5 @@ if (ANDROID)
|
|||
endif()
|
||||
|
||||
if (WIN32)
|
||||
target_include_directories(LibCore PRIVATE ${MMAN_INCLUDE_DIR})
|
||||
|
||||
find_package(pthread REQUIRED)
|
||||
target_include_directories(LibCore PRIVATE ${PTHREAD_INCLUDE_DIR})
|
||||
target_link_libraries(LibCore PRIVATE ${PTHREAD_LIBRARY})
|
||||
|
||||
target_link_libraries(LibCore PRIVATE ws2_32.lib)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue