Skip to content

Commit 91dab5d

Browse files
committed
fix cmake dependencies
perfschema after 5.6 merge depends on sql_yacc.h
1 parent 72d01f2 commit 91dab5d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

storage/perfschema/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ table_session_account_connect_attrs.cc
182182
)
183183

184184
MYSQL_ADD_PLUGIN(perfschema ${PERFSCHEMA_SOURCES} STORAGE_ENGINE DEFAULT STATIC_ONLY)
185-
IF(WITH_PERFSCHEMA_STORAGE_ENGINE AND WITH_UNIT_TESTS)
186-
ADD_SUBDIRECTORY(unittest)
187-
ENDIF()
185+
IF (TARGET perfschema)
186+
ADD_DEPENDENCIES(perfschema GenServerSource)
187+
IF(WITH_UNIT_TESTS)
188+
ADD_SUBDIRECTORY(unittest)
189+
ENDIF(WITH_UNIT_TESTS)
190+
ENDIF(TARGET perfschema)

0 commit comments

Comments
 (0)