From a69e6b8566f0a7a10874c69d5058a463d0301f45 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Thu, 28 Sep 2023 22:36:48 +0100 Subject: [PATCH] Maybe fix build on macos --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e76842c..ae6cda77 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -297,6 +297,10 @@ else() add_library(cctz::cctz ALIAS cctz) target_include_directories(cctz INTERFACE $) + if (APPLE) + find_library(CoreFoundation CoreFoundation REQUIRED) + target_link_libraries(cctz INTERFACE ${CoreFoundation}) + endif() endif() check_cxx_symbol_exists(getopt_long "getopt.h" HAVE_GETOPT_LONG)