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
b5f2b3bc
Commit
b5f2b3bc
authored
Dec 01, 2009
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix make dist errors
parent
5dfa313e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
1 deletion
+48
-1
cmake/Makefile.am
cmake/Makefile.am
+1
-1
cmake/cmake_parse_arguments.cmake
cmake/cmake_parse_arguments.cmake
+47
-0
No files found.
cmake/Makefile.am
View file @
b5f2b3bc
EXTRA_DIST
=
\
cmake_parse_arguments.cmake
cmake_parse_arguments.cmake
\
configurable_file_content.in
\
check_minimal_version.cmake
\
create_initial_db.cmake.in
\
...
...
cmake/cmake_parse_arguments.cmake
0 → 100644
View file @
b5f2b3bc
# Copyright (C) 2007 MySQL AB, 2009 Sun Microsystems,Inc
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# Handy macro to parse macro arguments
MACRO
(
CMAKE_PARSE_ARGUMENTS prefix arg_names option_names
)
SET
(
DEFAULT_ARGS
)
FOREACH
(
arg_name
${
arg_names
}
)
SET
(
${
prefix
}
_
${
arg_name
}
)
ENDFOREACH
(
arg_name
)
FOREACH
(
option
${
option_names
}
)
SET
(
${
prefix
}
_
${
option
}
FALSE
)
ENDFOREACH
(
option
)
SET
(
current_arg_name DEFAULT_ARGS
)
SET
(
current_arg_list
)
FOREACH
(
arg
${
ARGN
}
)
SET
(
larg_names
${
arg_names
}
)
LIST
(
FIND larg_names
"
${
arg
}
"
is_arg_name
)
IF
(
is_arg_name GREATER -1
)
SET
(
${
prefix
}
_
${
current_arg_name
}
${
current_arg_list
}
)
SET
(
current_arg_name
${
arg
}
)
SET
(
current_arg_list
)
ELSE
(
is_arg_name GREATER -1
)
SET
(
loption_names
${
option_names
}
)
LIST
(
FIND loption_names
"
${
arg
}
"
is_option
)
IF
(
is_option GREATER -1
)
SET
(
${
prefix
}
_
${
arg
}
TRUE
)
ELSE
(
is_option GREATER -1
)
SET
(
current_arg_list
${
current_arg_list
}
${
arg
}
)
ENDIF
(
is_option GREATER -1
)
ENDIF
(
is_arg_name GREATER -1
)
ENDFOREACH
(
arg
)
SET
(
${
prefix
}
_
${
current_arg_name
}
${
current_arg_list
}
)
ENDMACRO
()
\ No newline at end of file
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