contrib/nanodbc: add hidden library

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-01-20 17:25:46 +03:00
parent e81586cd8d
commit bbf80396f9

View File

@ -12,8 +12,7 @@ set (SRCS
"${LIBRARY_DIR}/nanodbc/nanodbc.cpp" "${LIBRARY_DIR}/nanodbc/nanodbc.cpp"
) )
add_library(nanodbc ${SRCS}) add_library(_nanodbc ${SRCS})
target_link_libraries(_nanodbc PUBLIC ch_contrib::unixodbc)
target_link_libraries (nanodbc PUBLIC ch_contrib::unixodbc) target_include_directories(_nanodbc SYSTEM PUBLIC "${LIBRARY_DIR}/")
target_include_directories (nanodbc SYSTEM PUBLIC "${LIBRARY_DIR}/") add_library(ch_contrib::nanodbc ALIAS _nanodbc)
add_library(ch_contrib::nanodbc ALIAS nanodbc)