This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 8dc2273bce Make cmake builds work on macOS again (#10120)
8dc2273bce is described below
commit 8dc2273bce276fa1a6ce5151b3a610ef3a55b009
Author: Leif Hedstrom <[email protected]>
AuthorDate: Tue Aug 1 10:35:43 2023 -0600
Make cmake builds work on macOS again (#10120)
---
src/api/CMakeLists.txt | 3 +++
tests/gold_tests/jsonrpc/plugins/CMakeLists.txt | 1 +
tests/gold_tests/timeout/CMakeLists.txt | 1 +
tests/tools/plugins/CMakeLists.txt | 7 +++++++
4 files changed, 12 insertions(+)
diff --git a/src/api/CMakeLists.txt b/src/api/CMakeLists.txt
index 7d4cbe58eb..8ee2b3ddb4 100644
--- a/src/api/CMakeLists.txt
+++ b/src/api/CMakeLists.txt
@@ -20,6 +20,9 @@ add_library(ts::tsapi ALIAS tsapi)
install(TARGETS tsapi)
+if(APPLE)
+ target_link_options(tsapi PRIVATE -undefined dynamic_lookup)
+endif()
add_executable(test_Metrics
test_Metrics.cc
diff --git a/tests/gold_tests/jsonrpc/plugins/CMakeLists.txt
b/tests/gold_tests/jsonrpc/plugins/CMakeLists.txt
index d5fb1b0e5b..0fd9c3fbb0 100644
--- a/tests/gold_tests/jsonrpc/plugins/CMakeLists.txt
+++ b/tests/gold_tests/jsonrpc/plugins/CMakeLists.txt
@@ -25,4 +25,5 @@ target_include_directories(jsonrpc_plugin_handler_test
target_link_libraries(jsonrpc_plugin_handler_test
PRIVATE
jsonrpc_protocol
+ libswoc
)
diff --git a/tests/gold_tests/timeout/CMakeLists.txt
b/tests/gold_tests/timeout/CMakeLists.txt
index 8e58cd3f3b..ad6678a37e 100644
--- a/tests/gold_tests/timeout/CMakeLists.txt
+++ b/tests/gold_tests/timeout/CMakeLists.txt
@@ -16,3 +16,4 @@
#######################
add_autest_plugin(ssl-delay-server ssl-delay-server.cc)
+target_link_libraries(ssl-delay-server PRIVATE OpenSSL::SSL)
diff --git a/tests/tools/plugins/CMakeLists.txt
b/tests/tools/plugins/CMakeLists.txt
index f1a408ee82..9ebaaa1b83 100644
--- a/tests/tools/plugins/CMakeLists.txt
+++ b/tests/tools/plugins/CMakeLists.txt
@@ -49,3 +49,10 @@ add_autest_plugin(test_hooks test_hooks.cc)
add_autest_plugin(test_log_interface test_log_interface.cc)
add_autest_plugin(user_args user_args.cc)
add_autest_plugin(async_engine async_engine.c)
+
+target_link_libraries(cert_update PRIVATE OpenSSL::SSL)
+target_link_libraries(continuations_verify PRIVATE OpenSSL::SSL)
+target_link_libraries(ssl_client_verify_test PRIVATE OpenSSL::SSL)
+target_link_libraries(ssl_hook_test PRIVATE OpenSSL::SSL)
+target_link_libraries(ssl_secret_load_test PRIVATE OpenSSL::SSL)
+target_link_libraries(ssl_verify_test PRIVATE OpenSSL::SSL)