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
f0c2b9c5
Commit
f0c2b9c5
authored
Nov 13, 2010
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add missing COMPONENT to all CMake INSTALL commands
parent
1b6bf12b
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
38 additions
and
28 deletions
+38
-28
CMakeLists.txt
CMakeLists.txt
+9
-4
cmake/install_macros.cmake
cmake/install_macros.cmake
+4
-7
libmysql/CMakeLists.txt
libmysql/CMakeLists.txt
+3
-3
libservices/CMakeLists.txt
libservices/CMakeLists.txt
+1
-1
man/CMakeLists.txt
man/CMakeLists.txt
+4
-2
mysql-test/CMakeLists.txt
mysql-test/CMakeLists.txt
+2
-1
scripts/CMakeLists.txt
scripts/CMakeLists.txt
+1
-1
sql-bench/CMakeLists.txt
sql-bench/CMakeLists.txt
+5
-5
sql/CMakeLists.txt
sql/CMakeLists.txt
+1
-1
support-files/CMakeLists.txt
support-files/CMakeLists.txt
+8
-3
No files found.
CMakeLists.txt
View file @
f0c2b9c5
...
...
@@ -338,21 +338,26 @@ SET(CPACK_MONOLITHIC_INSTALL 1 CACHE INTERNAL "")
INCLUDE
(
CPack
)
IF
(
UNIX
)
INSTALL
(
FILES Docs/mysql.info DESTINATION
${
INSTALL_INFODIR
}
OPTIONAL
)
INSTALL
(
FILES Docs/mysql.info DESTINATION
${
INSTALL_INFODIR
}
OPTIONAL
COMPONENT Info
)
ENDIF
()
#
# RPM installs documentation directly from the source tree
#
IF
(
NOT INSTALL_LAYOUT MATCHES
"RPM"
)
INSTALL
(
FILES COPYING EXCEPTIONS-CLIENT LICENSE.mysql DESTINATION
${
INSTALL_DOCREADMEDIR
}
OPTIONAL
)
INSTALL
(
FILES README DESTINATION
${
INSTALL_DOCREADMEDIR
}
)
INSTALL
(
FILES COPYING EXCEPTIONS-CLIENT LICENSE.mysql
DESTINATION
${
INSTALL_DOCREADMEDIR
}
COMPONENT Readme
OPTIONAL
)
INSTALL
(
FILES README DESTINATION
${
INSTALL_DOCREADMEDIR
}
COMPONENT Readme
)
IF
(
UNIX
)
INSTALL
(
FILES Docs/INSTALL-BINARY DESTINATION
${
INSTALL_DOCREADMEDIR
}
)
INSTALL
(
FILES Docs/INSTALL-BINARY DESTINATION
${
INSTALL_DOCREADMEDIR
}
COMPONENT Readme
)
ENDIF
()
# MYSQL_DOCS_LOCATON is used in "make dist", points to the documentation directory
SET
(
MYSQL_DOCS_LOCATION
""
CACHE PATH
"Location from where documentation is copied"
)
MARK_AS_ADVANCED
(
MYSQL_DOCS_LOCATION
)
INSTALL
(
DIRECTORY Docs/ DESTINATION
${
INSTALL_DOCDIR
}
COMPONENT Documentation
PATTERN
"INSTALL-BINARY"
EXCLUDE
PATTERN
"Makefile.*"
EXCLUDE
PATTERN
"glibc*"
EXCLUDE
...
...
cmake/install_macros.cmake
View file @
f0c2b9c5
...
...
@@ -78,7 +78,9 @@ FUNCTION(INSTALL_MANPAGE file)
ELSE
()
SET
(
SECTION man8
)
ENDIF
()
INSTALL
(
FILES
"
${
MANPAGE
}
"
DESTINATION
"
${
INSTALL_MANDIR
}
/
${
SECTION
}
"
)
MESSAGE
(
"huj!"
)
INSTALL
(
FILES
"
${
MANPAGE
}
"
DESTINATION
"
${
INSTALL_MANDIR
}
/
${
SECTION
}
"
COMPONENT ManPages
)
ENDIF
()
ENDFUNCTION
()
...
...
@@ -137,12 +139,7 @@ IF(UNIX)
STRING
(
REPLACE
"
${
CMAKE_CFG_INTDIR
}
"
"
\$
{CMAKE_INSTALL_CONFIG_NAME}"
output
${
output
}
)
ENDIF
()
IF
(
component
)
SET
(
COMP COMPONENT
${
component
}
)
ELSE
()
SET
(
COMP
)
ENDIF
()
INSTALL
(
FILES
${
output
}
DESTINATION
${
destination
}
${
COMP
}
)
INSTALL
(
FILES
${
output
}
DESTINATION
${
destination
}
COMPONENT
${
component
}
)
ENDIF
()
ENDMACRO
()
...
...
libmysql/CMakeLists.txt
View file @
f0c2b9c5
...
...
@@ -172,7 +172,7 @@ IF(UNIX)
SET
(
${
OUTNAME
}
${
LIBNAME
}${
EXTENSION
}${
DOT_VERSION
}
)
ENDIF
()
ENDMACRO
()
INSTALL_SYMLINK
(
${
CMAKE_STATIC_LIBRARY_PREFIX
}
mysqlclient_r.a mysqlclient
${
INSTALL_LIBDIR
}
COMPONENT SharedLibraries
)
INSTALL_SYMLINK
(
${
CMAKE_STATIC_LIBRARY_PREFIX
}
mysqlclient_r.a mysqlclient
${
INSTALL_LIBDIR
}
Development
)
ENDIF
()
IF
(
NOT DISABLE_SHARED
)
...
...
@@ -210,7 +210,7 @@ IF(NOT DISABLE_SHARED)
"
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
"
""
linkname
)
INSTALL_SYMLINK
(
${
linkname
}
libmysql
${
INSTALL_LIBDIR
}
COMPONENT
SharedLibraries
)
INSTALL_SYMLINK
(
${
linkname
}
libmysql
${
INSTALL_LIBDIR
}
SharedLibraries
)
SET
(
OS_SHARED_LIB_SYMLINKS
"
${
SHARED_LIB_MAJOR_VERSION
}
"
"
${
OS_SHARED_LIB_VERSION
}
"
)
LIST
(
REMOVE_DUPLICATES OS_SHARED_LIB_SYMLINKS
)
FOREACH
(
ver
${
OS_SHARED_LIB_SYMLINKS
}
)
...
...
@@ -219,7 +219,7 @@ IF(NOT DISABLE_SHARED)
"
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
"
"
${
ver
}
"
linkname
)
INSTALL_SYMLINK
(
${
linkname
}
libmysql
${
INSTALL_LIBDIR
}
COMPONENT
SharedLibraries
)
INSTALL_SYMLINK
(
${
linkname
}
libmysql
${
INSTALL_LIBDIR
}
SharedLibraries
)
ENDFOREACH
()
ENDIF
()
ENDIF
()
libservices/CMakeLists.txt
View file @
f0c2b9c5
...
...
@@ -22,4 +22,4 @@ SET(MYSQLSERVICES_SOURCES
my_thread_scheduler_service.c
)
ADD_LIBRARY
(
mysqlservices
${
MYSQLSERVICES_SOURCES
}
)
INSTALL
(
TARGETS mysqlservices DESTINATION
${
INSTALL_LIBDIR
}
)
INSTALL
(
TARGETS mysqlservices DESTINATION
${
INSTALL_LIBDIR
}
COMPONENT Development
)
man/CMakeLists.txt
View file @
f0c2b9c5
...
...
@@ -21,8 +21,10 @@ IF(MAN1_FILES)
IF
(
MAN1_EXCLUDE
)
LIST
(
REMOVE_ITEM MAN1_FILES
${
MAN1_EXCLUDE
}
)
ENDIF
()
INSTALL
(
FILES
${
MAN1_FILES
}
DESTINATION
${
INSTALL_MANDIR
}
/man1
)
INSTALL
(
FILES
${
MAN1_FILES
}
DESTINATION
${
INSTALL_MANDIR
}
/man1
COMPONENT ManPages
)
ENDIF
()
IF
(
MAN8_FILES
)
INSTALL
(
FILES
${
MAN8_FILES
}
DESTINATION
${
INSTALL_MANDIR
}
/man8
)
INSTALL
(
FILES
${
MAN8_FILES
}
DESTINATION
${
INSTALL_MANDIR
}
/man8
COMPONENT ManPages
)
ENDIF
()
mysql-test/CMakeLists.txt
View file @
f0c2b9c5
...
...
@@ -53,7 +53,8 @@ IF(UNIX)
IF
(
INSTALL_MYSQLTESTDIR
)
INSTALL
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/mtr
${
CMAKE_CURRENT_BINARY_DIR
}
/mysql-test-run
DESTINATION
${
INSTALL_MYSQLTESTDIR
}
)
DESTINATION
${
INSTALL_MYSQLTESTDIR
}
COMPONENT Test
)
ENDIF
()
ENDIF
()
...
...
scripts/CMakeLists.txt
View file @
f0c2b9c5
...
...
@@ -310,7 +310,7 @@ IF(WIN32)
FOREACH
(
file
${
SH_FILES
}
)
CONFIGURE_FILE
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
file
}
.sh
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
file
}
.pl ESCAPE_QUOTES @ONLY
)
INSTALL_SCRIPT
(
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
file
}
.pl COMPONENT
${${
file
}
_COMPONENT
}
)
INSTALL_SCRIPT
(
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
file
}
.pl COMPONENT
Server_Scripts
)
ENDFOREACH
()
ELSE
()
# On Unix, most of the files end up in the bin directory
...
...
sql-bench/CMakeLists.txt
View file @
f0c2b9c5
...
...
@@ -26,13 +26,13 @@ ELSE()
ENDIF
()
INSTALL
(
DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/Data/ATIS
DESTINATION
${
prefix
}
sql-bench/Data
)
DESTINATION
${
prefix
}
sql-bench/Data
COMPONENT SqlBench
)
INSTALL
(
DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/Data/Wisconsin
DESTINATION
${
prefix
}
sql-bench/Data
)
DESTINATION
${
prefix
}
sql-bench/Data
COMPONENT SqlBench
)
INSTALL
(
DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/limits
DESTINATION
${
prefix
}
sql-bench
)
DESTINATION
${
prefix
}
sql-bench
COMPONENT SqlBench
)
FILE
(
GLOB all_files
${
CMAKE_CURRENT_SOURCE_DIR
}
/*
)
...
...
@@ -54,10 +54,10 @@ FOREACH(file ${all_files})
CONFIGURE_FILE
(
${
file
}
${
target
}
COPYONLY
)
IF
(
ext MATCHES
".bat"
)
IF
(
WIN32
)
INSTALL
(
FILES
${
target
}
DESTINATION
${
prefix
}
sql-bench
)
INSTALL
(
FILES
${
target
}
DESTINATION
${
prefix
}
sql-bench
COMPONENT SqlBench
)
ENDIF
()
ELSE
()
INSTALL
(
FILES
${
target
}
DESTINATION
${
prefix
}
sql-bench
)
INSTALL
(
FILES
${
target
}
DESTINATION
${
prefix
}
sql-bench
COMPONENT SqlBench
)
ENDIF
()
ENDIF
()
ENDFOREACH
()
sql/CMakeLists.txt
View file @
f0c2b9c5
...
...
@@ -283,7 +283,7 @@ IF(WIN32 AND MYSQLD_EXECUTABLE)
COMPONENT DataFiles PATTERN
"initdb.dep"
EXCLUDE PATTERN
"bootstrap.sql"
EXCLUDE
)
ELSE
()
# Not windows or cross compiling, just install an empty directory
INSTALL
(
FILES
${
DUMMY_FILE
}
DESTINATION data/mysql
)
INSTALL
(
FILES
${
DUMMY_FILE
}
DESTINATION data/mysql
COMPONENT DataFiles
)
ENDIF
()
ENDIF
()
support-files/CMakeLists.txt
View file @
f0c2b9c5
...
...
@@ -61,12 +61,17 @@ IF(UNIX)
CONFIGURE_FILE
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
script
}
.sh
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
script
}
@ONLY
)
IF
(
script MATCHES
".ini"
)
SET
(
comp IniFiles
)
ELSE
()
SET
(
comp Server_Scripts
)
ENDIF
()
INSTALL
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
script
}
DESTINATION
${
inst_location
}
DESTINATION
${
inst_location
}
COMPONENT
${
comp
}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
ENDFOREACH
()
IF
(
INSTALL_SUPPORTFILESDIR
)
INSTALL
(
FILES magic DESTINATION
${
inst_location
}
)
INSTALL
(
FILES magic DESTINATION
${
inst_location
}
COMPONENT SupportFiles
)
ENDIF
()
INSTALL
(
FILES mysql.m4 DESTINATION
${
INSTALL_SHAREDIR
}
/aclocal COMPONENT Development
)
...
...
@@ -83,7 +88,7 @@ IF(UNIX)
CONFIGURE_FILE
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/mysql.server.sh
${
CMAKE_CURRENT_BINARY_DIR
}
/mysql.server @ONLY
)
INSTALL
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/mysql.server
DESTINATION
${
inst_location
}
DESTINATION
${
inst_location
}
COMPONENT SupportFiles
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ
GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
ENDIF
()
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