mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-02 20:24:27 +02:00
Validate TZdata failed with OS TZdata
This commit is contained in:
committed by
Howard Hinnant
parent
c311db2f1a
commit
e6941697eb
@@ -51,12 +51,12 @@ if( USE_SYSTEM_TZ_DB )
|
||||
target_compile_definitions( tz PRIVATE -DHAS_REMOTE_API=0 )
|
||||
# cannot set USE_OS_TZDB to 1 on Windows
|
||||
if( NOT WIN32 )
|
||||
target_compile_definitions( tz PRIVATE -DUSE_OS_TZDB=1 )
|
||||
target_compile_definitions( tz PUBLIC -DUSE_OS_TZDB=1 )
|
||||
endif( )
|
||||
else( )
|
||||
target_compile_definitions( tz PRIVATE -DUSE_AUTOLOAD=1 )
|
||||
target_compile_definitions( tz PRIVATE -DHAS_REMOTE_API=1 )
|
||||
target_compile_definitions( tz PRIVATE -DUSE_OS_TZDB=0 )
|
||||
target_compile_definitions( tz PUBLIC -DUSE_OS_TZDB=0 )
|
||||
find_package( CURL REQUIRED )
|
||||
include_directories( SYSTEM ${CURL_INCLUDE_DIRS} )
|
||||
set( OPTIONAL_LIBRARIES ${CURL_LIBRARIES} )
|
||||
|
Reference in New Issue
Block a user