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
aaedb2c6
Commit
aaedb2c6
authored
Apr 26, 2010
by
Jonathan Perkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix libmysqlclient symlinks on per-OS basis.
parent
210d37e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
libmysql/CMakeLists.txt
libmysql/CMakeLists.txt
+10
-3
No files found.
libmysql/CMakeLists.txt
View file @
aaedb2c6
...
...
@@ -177,10 +177,18 @@ ENDIF()
IF
(
NOT DISABLE_SHARED
)
MERGE_LIBRARIES
(
libmysql SHARED
${
LIBS
}
EXPORTS
${
CLIENT_API_FUNCTIONS
}
)
IF
(
UNIX
)
# libtool compatability
IF
(
CMAKE_SYSTEM_NAME MATCHES
"FreeBSD"
OR APPLE
)
SET
(
OS_SHARED_LIB_VERSION
"
${
SHARED_LIB_MAJOR_VERSION
}
"
)
ELSEIF
(
CMAKE_SYSTEM_NAME MATCHES
"HP-UX"
)
SET
(
OS_SHARED_LIB_VERSION
"
${
SHARED_LIB_MAJOR_VERSION
}
.0"
)
ELSE
()
SET
(
OS_SHARED_LIB_VERSION
"
${
SHARED_LIB_MAJOR_VERSION
}
.0.0"
)
ENDIF
()
# Name of shared library is mysqlclient on Unix
SET_TARGET_PROPERTIES
(
libmysql PROPERTIES
OUTPUT_NAME mysqlclient
VERSION
"
${
SHARED_LIB_MAJOR_VERSION
}
.0.0
"
VERSION
"
${
OS_SHARED_LIB_VERSION
}
"
SOVERSION
"
${
SHARED_LIB_MAJOR_VERSION
}
"
)
IF
(
LINK_FLAG_NO_UNDEFINED
)
GET_TARGET_PROPERTY
(
libmysql_link_flags libmysql LINK_FLAGS
)
...
...
@@ -196,8 +204,7 @@ IF(NOT DISABLE_SHARED)
SET_TARGET_PROPERTIES
(
libmysql PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
# Install 3 links to libmysqlclient.so (client_r)
FOREACH
(
ver
""
"
${
SHARED_LIB_MAJOR_VERSION
}
"
"
${
SHARED_LIB_MAJOR_VERSION
}
.0.0"
)
FOREACH
(
ver
""
"
${
SHARED_LIB_MAJOR_VERSION
}
"
"
${
OS_SHARED_LIB_VERSION
}
"
)
GET_VERSIONED_LIBNAME
(
"
${
CMAKE_SHARED_LIBRARY_PREFIX
}
mysqlclient_r"
"
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
"
...
...
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