Commit 1e7dd850 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-6579 IMPORT_EXECUTABLES feature broken by addition of gen_pfs_lex_token

parents 4d4ce59d 55b47649
......@@ -468,7 +468,7 @@ ADD_SUBDIRECTORY(packaging/solaris)
IF(NOT CMAKE_CROSSCOMPILING)
SET(EXPORTED comp_err comp_sql factorial)
IF(NOT WITHOUT_SERVER)
SET(EXPORTED ${EXPORTED} gen_lex_hash)
SET(EXPORTED ${EXPORTED} gen_lex_hash gen_pfs_lex_token)
ENDIF()
# minimal target to build only binaries for export
ADD_CUSTOM_TARGET(import_executables DEPENDS ${EXPORTED})
......
......@@ -22,9 +22,11 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}
ADD_DEFINITIONS(-DMYSQL_SERVER)
# Gen_pfs_lex_token
ADD_EXECUTABLE(gen_pfs_lex_token gen_pfs_lex_token.cc)
# gen_pfs_lex_token itself depends on ${CMAKE_CURRENT_BINARY_DIR}/sql/sql_yacc.h
ADD_DEPENDENCIES(gen_pfs_lex_token GenServerSource)
IF(NOT CMAKE_CROSSCOMPILING)
ADD_EXECUTABLE(gen_pfs_lex_token gen_pfs_lex_token.cc)
# gen_pfs_lex_token itself depends on ${CMAKE_CURRENT_BINARY_DIR}/sql/sql_yacc.h
ADD_DEPENDENCIES(gen_pfs_lex_token GenServerSource)
ENDIF()
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pfs_lex_token.h
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment