fix: failed to run make DESTDIR=./ install in non-rpm build mode

This commit is contained in:
Fireatoms
2021-12-29 18:21:41 +08:00
committed by LINxiansheng
parent 60f8ae0dc8
commit 20092c8bb9
5 changed files with 54 additions and 32 deletions

View File

@ -81,9 +81,14 @@ target_compile_definitions(ob_sql_proxy_parser_objects PUBLIC SQL_PARSER_COMPILA
disable_pch(ob_sql_server_parser_objects)
disable_pch(ob_sql_proxy_parser_objects)
add_library(ob_sql_proxy_parser_static
STATIC
EXCLUDE_FROM_ALL)
message(STATUS "OB_BUILD_LIBOB_SQL_PROXY_PARSER ${OB_BUILD_LIBOB_SQL_PROXY_PARSER}")
if (OB_BUILD_LIBOB_SQL_PROXY_PARSER)
add_library(ob_sql_proxy_parser_static STATIC)
else()
add_library(ob_sql_proxy_parser_static
STATIC
EXCLUDE_FROM_ALL)
endif()
add_library(ob_sql_server_parser_static
STATIC