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
c0557845
Commit
c0557845
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
0b29085c
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 @
c0557845
...
@@ -59,13 +59,16 @@
...
@@ -59,13 +59,16 @@
# - INSTALL_SUPPORTFILESDIR (various extra support files)
# - INSTALL_SUPPORTFILESDIR (various extra support files)
#
#
# - INSTALL_MYSQLDATADIR (data directory)
# - 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
)
IF
(
NOT INSTALL_LAYOUT
)
SET
(
DEFAULT_INSTALL_LAYOUT
"STANDALONE"
)
SET
(
DEFAULT_INSTALL_LAYOUT
"STANDALONE"
)
ENDIF
()
ENDIF
()
SET
(
INSTALL_LAYOUT
"
${
DEFAULT_INSTALL_LAYOUT
}
"
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
(
UNIX
)
IF
(
INSTALL_LAYOUT MATCHES
"RPM"
)
IF
(
INSTALL_LAYOUT MATCHES
"RPM"
)
...
@@ -83,6 +86,13 @@ IF(UNIX)
...
@@ -83,6 +86,13 @@ IF(UNIX)
SET
(
CMAKE_INSTALL_PREFIX
${
default_prefix
}
SET
(
CMAKE_INSTALL_PREFIX
${
default_prefix
}
CACHE PATH
"install prefix"
FORCE
)
CACHE PATH
"install prefix"
FORCE
)
ENDIF
()
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"
SET
(
SYSCONFDIR
"
${
CMAKE_INSTALL_PREFIX
}
/etc"
CACHE PATH
"config directory (for my.cnf)"
)
CACHE PATH
"config directory (for my.cnf)"
)
MARK_AS_ADVANCED
(
SYSCONFDIR
)
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