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 )
|
target_compile_definitions( tz PRIVATE -DHAS_REMOTE_API=0 )
|
||||||
# cannot set USE_OS_TZDB to 1 on Windows
|
# cannot set USE_OS_TZDB to 1 on Windows
|
||||||
if( NOT WIN32 )
|
if( NOT WIN32 )
|
||||||
target_compile_definitions( tz PRIVATE -DUSE_OS_TZDB=1 )
|
target_compile_definitions( tz PUBLIC -DUSE_OS_TZDB=1 )
|
||||||
endif( )
|
endif( )
|
||||||
else( )
|
else( )
|
||||||
target_compile_definitions( tz PRIVATE -DUSE_AUTOLOAD=1 )
|
target_compile_definitions( tz PRIVATE -DUSE_AUTOLOAD=1 )
|
||||||
target_compile_definitions( tz PRIVATE -DHAS_REMOTE_API=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 )
|
find_package( CURL REQUIRED )
|
||||||
include_directories( SYSTEM ${CURL_INCLUDE_DIRS} )
|
include_directories( SYSTEM ${CURL_INCLUDE_DIRS} )
|
||||||
set( OPTIONAL_LIBRARIES ${CURL_LIBRARIES} )
|
set( OPTIONAL_LIBRARIES ${CURL_LIBRARIES} )
|
||||||
@@ -66,7 +66,7 @@ if( USE_TZ_DB_IN_DOT )
|
|||||||
target_compile_definitions( tz PRIVATE -DINSTALL=. )
|
target_compile_definitions( tz PRIVATE -DINSTALL=. )
|
||||||
endif( )
|
endif( )
|
||||||
|
|
||||||
if( NOT TZ_CXX_STANDARD )
|
if( NOT TZ_CXX_STANDARD )
|
||||||
set( TZ_CXX_STANDARD 17 )
|
set( TZ_CXX_STANDARD 17 )
|
||||||
endif( )
|
endif( )
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user