Maybe fix build on macos

This commit is contained in:
Alexey Sokolov
2023-09-28 22:36:48 +01:00
parent 458063a860
commit a69e6b8566
+4
View File
@@ -297,6 +297,10 @@ else()
add_library(cctz::cctz ALIAS cctz)
target_include_directories(cctz INTERFACE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/third_party/cctz/include>)
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)