1
# Copyright (C) 2006 MySQL AB
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; version 2 of the License.
7
# This program is distributed in the hope that it will be useful,
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
# GNU General Public License for more details.
12
# You should have received a copy of the GNU General Public License
13
# along with this program; if not, write to the Free Software
14
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
ADD_EXECUTABLE(comp_sql comp_sql.c)
18
TARGET_LINK_LIBRARIES(comp_sql dbug mysys strings)
20
# Build comp_sql - used for embedding SQL in C or C++ programs
21
GET_TARGET_PROPERTY(COMP_SQL_EXE comp_sql LOCATION)
23
ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_SOURCE_DIR}/scripts/mysql_fix_privilege_tables_sql.c
24
COMMAND ${COMP_SQL_EXE}
25
mysql_fix_privilege_tables
26
mysql_fix_privilege_tables.sql
27
mysql_fix_privilege_tables_sql.c
28
DEPENDS comp_sql ${PROJECT_SOURCE_DIR}/scripts/mysql_fix_privilege_tables.sql)
30
ADD_CUSTOM_TARGET(GenFixPrivs
32
DEPENDS ${PROJECT_SOURCE_DIR}/scripts/mysql_fix_privilege_tables_sql.c)