From df7c886fe690f2a42b75109400d88d7cc97d58d2 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Fri, 4 Oct 2019 11:08:46 +0200 Subject: [PATCH] Apply Mac specific caveats on the test build script. --- tests/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 9c4a75857..1a447a75b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -15,6 +15,10 @@ target_compile_definitions(test_catch2_common INTERFACE TEST_DATA_DIR="${TEST_DA target_link_libraries(test_catch2_common INTERFACE Catch2::Catch2) add_library(test_common INTERFACE) +if (APPLE) + target_link_libraries(test_common INTERFACE "-liconv -framework IOKit" "-framework CoreFoundation" -lc++) +endif() + target_link_libraries(test_common INTERFACE test_catch2_common) # DEPRECATED: