Only use date library on macOS.

This commit is contained in:
squidbus 2024-07-17 01:56:07 -07:00 committed by TheTurtle
parent b557de2c62
commit 426d82d07b
3 changed files with 17 additions and 4 deletions

View file

@ -135,7 +135,7 @@ if (WIN32)
endif()
# date
if (NOT TARGET date::date-tz)
if (APPLE AND NOT TARGET date::date-tz)
option(BUILD_TZ_LIB "" ON)
option(USE_SYSTEM_TZ_DB "" ON)
add_subdirectory(date)