mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-07 21:17:07 +09:00
Meta: Make pthread and mman available for all tests on Windows
by default (same code as in lagom_lib).
This commit is contained in:
parent
1d0cfdc839
commit
b64a4a83a1
Notes:
github-actions[bot]
2025-06-05 16:17:10 +00:00
Author: https://github.com/stasoid
Commit: b64a4a83a1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4964
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 9 additions and 0 deletions
|
@ -254,6 +254,15 @@ function(lagom_test source)
|
|||
endif()
|
||||
add_executable(${LAGOM_TEST_NAME} ${source})
|
||||
target_link_libraries(${LAGOM_TEST_NAME} PRIVATE AK LibCore LibFileSystem LibTest ${LAGOM_TEST_CUSTOM_MAIN} ${LAGOM_TEST_LIBS})
|
||||
|
||||
if (WIN32)
|
||||
target_include_directories(${LAGOM_TEST_NAME} PRIVATE ${PTHREAD_INCLUDE_DIR})
|
||||
target_link_libraries(${LAGOM_TEST_NAME} PRIVATE ${PTHREAD_LIBRARY})
|
||||
|
||||
target_include_directories(${LAGOM_TEST_NAME} PRIVATE ${MMAN_INCLUDE_DIR})
|
||||
target_link_libraries(${LAGOM_TEST_NAME} PRIVATE ${MMAN_LIBRARY})
|
||||
endif()
|
||||
|
||||
add_test(
|
||||
NAME ${LAGOM_TEST_NAME}
|
||||
COMMAND ${LAGOM_TEST_NAME}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue