Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
829cd244
Commit
829cd244
authored
Jun 28, 2010
by
Jonathan Perkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix more mysqlbug problems.
parent
43e41d45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
5 deletions
+42
-5
scripts/CMakeLists.txt
scripts/CMakeLists.txt
+42
-5
No files found.
scripts/CMakeLists.txt
View file @
829cd244
...
...
@@ -144,17 +144,55 @@ SET(HOSTNAME "hostname")
# and expand default cmake variables
SET
(
CC
${
CMAKE_C_COMPILER
}
)
SET
(
CXX
${
CMAKE_CXX_COMPILER
}
)
#XXX don't set CFLAGS, has already been done earlier
#XXX don't set CXXFLAGS, has already been done earlier
# Override CFLAGS for mysqlbug then reset
SET
(
BACKUP_CFLAGS
${
CFLAGS
}
)
SET
(
BACKUP_CXXFLAGS
${
CXXFLAGS
}
)
SET
(
CFLAGS
${
CMAKE_C_FLAGS_RELWITHDEBINFO
}
)
SET
(
CXXFLAGS
${
CMAKE_CXX_FLAGS_RELWITHDEBINFO
}
)
#
SET
(
SAVE_CC
${
CMAKE_C_COMPILER
}
)
SET
(
SAVE_CXX
${
CMAKE_CXX_COMPILER
}
)
SET
(
SAVE_CFLAGS
${
C
FLAGS
}
)
SET
(
SAVE_CXXFLAGS
${
C
XXFLAGS
}
)
SET
(
SAVE_CFLAGS
${
C
MAKE_C_FLAGS_RELWITHDEBINFO
}
)
SET
(
SAVE_CXXFLAGS
${
C
MAKE_CXX_FLAGS_RELWITHDEBINFO
}
)
# XXX no cmake equivalent for this, just make one up
SET
(
CONFIGURE_LINE
"Built using CMake"
)
# Also required for mysqlbug, autoconf only supports --version so for now we
# just explicitly require GNU
IF
(
CMAKE_COMPILER_IS_GNUCC
)
EXECUTE_PROCESS
(
COMMAND
${
CMAKE_C_COMPILER
}
${
CMAKE_C_COMPILER_ARG1
}
--version
COMMAND grep -i version
OUTPUT_VARIABLE CC_VERSION
)
ELSE
()
SET
(
CC_VERSION
""
)
ENDIF
()
IF
(
CMAKE_COMPILER_IS_GNUCXX
)
EXECUTE_PROCESS
(
COMMAND
${
CMAKE_CXX_COMPILER
}
${
CMAKE_CXX_COMPILER_ARG1
}
--version
COMMAND grep -i version
OUTPUT_VARIABLE CXX_VERSION
)
ELSE
()
SET
(
CXX_VERSION
""
)
ENDIF
()
ENDIF
(
UNIX
)
IF
(
UNIX
)
CONFIGURE_FILE
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/mysqlbug.sh
${
CMAKE_CURRENT_BINARY_DIR
}
/mysqlbug ESCAPE_QUOTES @ONLY
)
SET
(
DEST
${
INSTALL_SCRIPTDIR
}
)
ENDIF
()
INSTALL_SCRIPT
(
"
${
CMAKE_CURRENT_BINARY_DIR
}
/mysqlbug"
DESTINATION
${
DEST
}
COMPONENT Server
)
# Reset CFLAGS/CXXFLAGS back
SET
(
CFLAGS
${
BACKUP_CFLAGS
}
)
SET
(
CXXFLAGS
${
BACKUP_CXXFLAGS
}
)
# Really ugly, one script, "mysql_install_db", needs prefix set to ".",
# i.e. makes access relative the current directory. This matches
# the documentation, so better not change this.
...
...
@@ -305,7 +343,6 @@ ELSE()
mysql_zap
mysqlaccess
mysqlaccess.conf
mysqlbug
mysql_convert_table_format
mysql_find_rows
mysqlhotcopy
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment