mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
project(Datastore) renamed the CMake auto-vars ClickHouse_SOURCE_DIR/BINARY_DIR; the contrib *-cmake glue + top-level CMakeLists submodule check still referenced the old names -> undefined -> false 'submodules not initialized'. Renamed all CMake refs (incl contrib glue). Found by spark build.
27 lines
766 B
CMake
27 lines
766 B
CMake
option(ENABLE_IDNA "Enable idna support" ${ENABLE_LIBRARIES})
|
|
|
|
if ((NOT ENABLE_IDNA))
|
|
message (STATUS "Not using idna")
|
|
return()
|
|
endif()
|
|
|
|
set (LIBRARY_DIR "${Datastore_SOURCE_DIR}/contrib/idna")
|
|
|
|
set (SRCS
|
|
"${LIBRARY_DIR}/src/idna.cpp"
|
|
"${LIBRARY_DIR}/src/mapping.cpp"
|
|
"${LIBRARY_DIR}/src/mapping_tables.cpp"
|
|
"${LIBRARY_DIR}/src/normalization.cpp"
|
|
"${LIBRARY_DIR}/src/normalization_tables.cpp"
|
|
"${LIBRARY_DIR}/src/punycode.cpp"
|
|
"${LIBRARY_DIR}/src/to_ascii.cpp"
|
|
"${LIBRARY_DIR}/src/to_unicode.cpp"
|
|
"${LIBRARY_DIR}/src/unicode_transcoding.cpp"
|
|
"${LIBRARY_DIR}/src/validity.cpp"
|
|
)
|
|
|
|
add_library (_idna ${SRCS})
|
|
target_include_directories(_idna PUBLIC "${LIBRARY_DIR}/include")
|
|
|
|
add_library (ch_contrib::idna ALIAS _idna)
|