Skip to content

Commit a7c5fd6

Browse files
committed
restore dependencies, removed in f2dc04a
otherwise make didn't know it needs to regenerate lex_hash.h when gen_lex_hash (that is sql_yacc.h, that is sql_yacc.yy) changes.
1 parent 49552cf commit a7c5fd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sql/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ ENDIF()
4646
ADD_CUSTOM_COMMAND(
4747
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lex_token.h
4848
COMMAND gen_lex_token > lex_token.h
49+
DEPENDS gen_lex_token
4950
)
5051

5152
ADD_DEFINITIONS(-DMYSQL_SERVER -DHAVE_EVENT_SCHEDULER)
@@ -294,6 +295,7 @@ ENDIF()
294295
ADD_CUSTOM_COMMAND(
295296
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lex_hash.h
296297
COMMAND gen_lex_hash > lex_hash.h
298+
DEPENDS gen_lex_hash
297299
)
298300

299301
MYSQL_ADD_EXECUTABLE(mysql_tzinfo_to_sql tztime.cc COMPONENT Server)
@@ -418,7 +420,7 @@ IF(WIN32)
418420
${CMAKE_CURRENT_BINARY_DIR}/my_bootstrap.sql
419421
mysql_bootstrap_sql.c
420422
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
421-
DEPENDS ${my_bootstrap_sql}
423+
DEPENDS comp_sql ${my_bootstrap_sql}
422424
)
423425

424426
MYSQL_ADD_EXECUTABLE(mysql_install_db

0 commit comments

Comments
 (0)