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
9a59ea14
Commit
9a59ea14
authored
Jul 02, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#257 disable missing field initializer warning
parent
d74c5f74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
storage/tokudb/CMakeLists.txt
storage/tokudb/CMakeLists.txt
+19
-0
No files found.
storage/tokudb/CMakeLists.txt
View file @
9a59ea14
...
...
@@ -31,6 +31,25 @@ IF(DEFINED TOKUDB_CHECK_JEMALLOC)
ADD_DEFINITIONS
(
"-DTOKUDB_CHECK_JEMALLOC=
${
TOKUDB_CHECK_JEMALLOC
}
"
)
ENDIF
()
## adds a compiler flag if the compiler supports it
include
(
CheckCCompilerFlag
)
include
(
CheckCXXCompilerFlag
)
macro
(
set_cflags_if_supported
)
foreach
(
flag
${
ARGN
}
)
check_c_compiler_flag
(
${
flag
}
HAVE_C_
${
flag
}
)
if
(
HAVE_C_
${
flag
}
)
set
(
CMAKE_C_FLAGS
"
${
flag
}
${
CMAKE_C_FLAGS
}
"
)
endif
()
check_cxx_compiler_flag
(
${
flag
}
HAVE_CXX_
${
flag
}
)
if
(
HAVE_CXX_
${
flag
}
)
set
(
CMAKE_CXX_FLAGS
"
${
flag
}
${
CMAKE_CXX_FLAGS
}
"
)
endif
()
endforeach
(
flag
)
endmacro
(
set_cflags_if_supported
)
set_cflags_if_supported
(
-Wno-missing-field-initializers
)
ADD_SUBDIRECTORY
(
ft-index
)
INCLUDE_DIRECTORIES
(
ft-index
)
...
...
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