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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
3152434e
Commit
3152434e
authored
Sep 26, 2013
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#92 add compiler and cmake checks from mariadb
parent
9e67557d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
storage/tokudb/CMakeLists.txt
storage/tokudb/CMakeLists.txt
+16
-0
No files found.
storage/tokudb/CMakeLists.txt
View file @
3152434e
# ft-index only supports x86-64 and cmake-2.8.9+
IF
(
CMAKE_SYSTEM_PROCESSOR STREQUAL
"x86_64"
AND
NOT CMAKE_VERSION VERSION_LESS
"2.8.9"
AND
NOT WITHOUT_TOKUDB AND NOT WITHOUT_TOKUDB_STORAGE_ENGINE
)
CHECK_CXX_SOURCE_COMPILES
(
"
struct a {int b; int c; };
struct a d = { .b=1, .c=2 };
int main() { return 0; }
"
TOKUDB_OK
)
ENDIF
()
IF
(
NOT TOKUDB_OK
)
RETURN
()
ENDIF
()
IF
(
DEFINED ENV{TOKUDB_VERSION}
)
SET
(
TOKUDB_VERSION $ENV{TOKUDB_VERSION}
)
ADD_DEFINITIONS
(
"-DTOKUDB_VERSION=
\"
${
TOKUDB_VERSION
}
\"
"
)
...
...
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