contrib/magic-enum: use hidden library

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-01-20 17:24:38 +03:00
parent ccf5f18550
commit 6f161092d2

View File

@ -1,4 +1,4 @@
set (LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/magic_enum") set(LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/magic_enum")
add_library (magic_enum INTERFACE) add_library(_magic_enum INTERFACE)
target_include_directories(magic_enum SYSTEM INTERFACE ${LIBRARY_DIR}/include) target_include_directories(_magic_enum SYSTEM INTERFACE ${LIBRARY_DIR}/include)
add_library(ch_contrib::magic_enum ALIAS magic_enum) add_library(ch_contrib::magic_enum ALIAS _magic_enum)