Fix build

This commit is contained in:
Alexey Milovidov 2020-08-26 02:19:50 +03:00
parent 4137c4c528
commit 7799cc37ca

View File

@ -77,6 +77,9 @@ if (USE_INTERNAL_CCTZ)
# library into single string.
add_dependencies(cctz tzdata)
target_link_libraries(cctz INTERFACE "-Wl,${WHOLE_ARCHIVE} $<TARGET_FILE:tzdata> -Wl,${NO_WHOLE_ARCHIVE}")
else ()
file(APPEND ${SYSTEM_STORAGE_TZ_FILE} "// autogenerated by ClickHouse/contrib/cctz-cmake/CMakeLists.txt\n")
file(APPEND ${SYSTEM_STORAGE_TZ_FILE} "const char * auto_time_zones[] {nullptr};\n" )
endif ()
else ()