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
10bc97de
Commit
10bc97de
authored
Oct 11, 2010
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not accept invalid INSTALL_LAYOUT parameter
parent
9f157e6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
cmake/install_layout.cmake
cmake/install_layout.cmake
+11
-1
No files found.
cmake/install_layout.cmake
View file @
10bc97de
...
...
@@ -59,13 +59,16 @@
# - INSTALL_SUPPORTFILESDIR (various extra support files)
#
# - INSTALL_MYSQLDATADIR (data directory)
#
# When changing this page, _please_ do not forget to update public Wiki
# http://forge.mysql.com/wiki/CMake#Fine-tuning_installation_paths
IF
(
NOT INSTALL_LAYOUT
)
SET
(
DEFAULT_INSTALL_LAYOUT
"STANDALONE"
)
ENDIF
()
SET
(
INSTALL_LAYOUT
"
${
DEFAULT_INSTALL_LAYOUT
}
"
CACHE STRING
"Installation directory layout. Options are: STANDALONE (as in zip or tar.gz installer)
or UNIX
"
)
CACHE STRING
"Installation directory layout. Options are: STANDALONE (as in zip or tar.gz installer)
, RPM, DEB, SVR4
"
)
IF
(
UNIX
)
IF
(
INSTALL_LAYOUT MATCHES
"RPM"
)
...
...
@@ -83,6 +86,13 @@ IF(UNIX)
SET
(
CMAKE_INSTALL_PREFIX
${
default_prefix
}
CACHE PATH
"install prefix"
FORCE
)
ENDIF
()
SET
(
VALID_INSTALL_LAYOUTS
"RPM"
"STANDALONE"
"DEB"
"SVR5"
)
LIST
(
FIND VALID_INSTALL_LAYOUTS
"
${
INSTALL_LAYOUT
}
"
ind
)
IF
(
ind EQUAL -1
)
MESSAGE
(
FATAL_ERROR
"Invalid INSTALL_LAYOUT parameter:
${
INSTALL_LAYOUT
}
."
" Choose between
${
VALID_INSTALL_LAYOUTS
}
"
)
ENDIF
()
SET
(
SYSCONFDIR
"
${
CMAKE_INSTALL_PREFIX
}
/etc"
CACHE PATH
"config directory (for my.cnf)"
)
MARK_AS_ADVANCED
(
SYSCONFDIR
)
...
...
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