Skip to content

Commit 6dcb0dc

Browse files
committed
FIX: V8 tests need linking against CoreFoundation.
1 parent 0676e83 commit 6dcb0dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/gtest/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ if(${system_name} STREQUAL "linux")
3939
endif()
4040
endif()
4141

42+
if(APPLE)
43+
find_library(CoreFoundation CoreFoundation)
44+
endif()
45+
4246
message(STATUS "Detected vendor architecture directory: ${vendor_arch}")
4347

4448
# TODO?: Detect and support ruby-arch builds?
@@ -47,5 +51,7 @@ target_link_libraries(c_v8_tests ${CMAKE_SOURCE_DIR}/../../vendor/v8/${vendor_ar
4751
# This has to be after the v8 monolith for some build setups.
4852
target_link_libraries(c_v8_tests dl)
4953

54+
target_link_libraries(c_v8_tests $<$<PLATFORM_ID:Darwin>:${CoreFoundation}>)
55+
5056
include(GoogleTest)
5157
gtest_discover_tests(c_v8_tests)

0 commit comments

Comments
 (0)