From 1d10ee9358a0ec5b172442a84aecd3c94c981409 Mon Sep 17 00:00:00 2001 From: zhaochun Date: Thu, 5 Sep 2019 21:14:19 +0800 Subject: [PATCH] Fix compile error --- be/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt index 9c8358d60bb35b..a28c9b919f9ae1 100644 --- a/be/CMakeLists.txt +++ b/be/CMakeLists.txt @@ -488,12 +488,6 @@ set(DORIS_LINK_LIBS ${WL_END_GROUP} ) -if (WITH_MYSQL) - set(DORIS_DEPENDENCIES - mysql - ) -endif() - # Set thirdparty libraries set(DORIS_DEPENDENCIES ${DORIS_DEPENDENCIES} @@ -540,6 +534,12 @@ if(WITH_LZO) ) endif() +if (WITH_MYSQL) + set(DORIS_DEPENDENCIES ${DORIS_DEPENDENCIES} + mysql + ) +endif() + # Add all external dependencies. They should come after the palo libs. # static link gcc's lib set(DORIS_LINK_LIBS ${DORIS_LINK_LIBS}