From e5a9dcfda20e174525ad63a30e12f592aa9c96d3 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Tue, 28 Sep 2021 22:25:47 +0200 Subject: MDEV-23306 Fix build dependency --- libmysqld/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libmysqld') diff --git a/libmysqld/CMakeLists.txt b/libmysqld/CMakeLists.txt index c133e5a4378..30ddf9ec1c3 100644 --- a/libmysqld/CMakeLists.txt +++ b/libmysqld/CMakeLists.txt @@ -142,6 +142,9 @@ SET(SQL_EMBEDDED_SOURCES emb_qcache.cc libmysqld.c lib_sql.cc ADD_CONVENIENCE_LIBRARY(sql_embedded ${SQL_EMBEDDED_SOURCES}) DTRACE_INSTRUMENT(sql_embedded) ADD_DEPENDENCIES(sql_embedded GenError GenServerSource) +IF(TARGET pcre2) + ADD_DEPENDENCIES(sql_embedded pcre2) +ENDIF() # On Windows, static embedded server library is called mysqlserver.lib # On Unix, it is libmysqld.a -- cgit v1.2.1