From 1f27fb7d424468fc62eba2cf3c5cefd5a08704a6 Mon Sep 17 00:00:00 2001 From: Darrell Wright Date: Fri, 24 Nov 2017 23:54:38 -0500 Subject: [PATCH] Cannot set USE_OS_TZDB=1 on Windows --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b5966fb..30f40b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,9 @@ option( BUILD_STATIC "Build a static version of library" ON ) if( USE_SYSTEM_TZ_DB ) add_definitions( -DUSE_AUTOLOAD=0 ) add_definitions( -DHAS_REMOTE_API=0 ) - add_definitions( -DUSE_OS_TZDB=1 ) + if( NOT WIN32 ) + add_definitions( -DUSE_OS_TZDB=1 ) + endif( ) else( ) add_definitions( -DUSE_AUTOLOAD=1 ) add_definitions( -DHAS_REMOTE_API=1 )