~mdcallag/+junk/5.1-map

« back to all changes in this revision

Viewing changes to scripts/CMakeLists.txt

  • Committer: msvensson at pilot
  • Date: 2007-04-24 09:11:45 UTC
  • mfrom: (2469.1.106)
  • Revision ID: sp1r-msvensson@pilot.blaudden-20070424091145-10463
Merge pilot.blaudden:/home/msvensson/mysql/my51-m-mysql_upgrade
into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-maint

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2006 MySQL AB
 
2
 
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.
 
6
 
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.
 
11
 
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
 
15
 
 
16
 
 
17
ADD_EXECUTABLE(comp_sql comp_sql.c)
 
18
TARGET_LINK_LIBRARIES(comp_sql dbug mysys strings)
 
19
 
 
20
# Build comp_sql - used for embedding SQL in C or C++ programs
 
21
GET_TARGET_PROPERTY(COMP_SQL_EXE comp_sql LOCATION)
 
22
 
 
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)
 
29
 
 
30
ADD_CUSTOM_TARGET(GenFixPrivs
 
31
                  ALL
 
32
                  DEPENDS ${PROJECT_SOURCE_DIR}/scripts/mysql_fix_privilege_tables_sql.c)