summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Perkin <jonathan.perkin@oracle.com>2010-04-26 14:51:01 +0200
committerJonathan Perkin <jonathan.perkin@oracle.com>2010-04-26 14:51:01 +0200
commite7a28d44a785cb2fafcf51b5dfdde0e3e09296a1 (patch)
tree8ecd9467edefaa3f55865eff406708574b5bbca2
parentaaedb2c6ac0115df0433830e271bb4d4a499dd30 (diff)
downloadmariadb-git-e7a28d44a785cb2fafcf51b5dfdde0e3e09296a1.tar.gz
Remove duplicates.
-rwxr-xr-xlibmysql/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/libmysql/CMakeLists.txt b/libmysql/CMakeLists.txt
index 0690211f981..7eb42b3367c 100755
--- a/libmysql/CMakeLists.txt
+++ b/libmysql/CMakeLists.txt
@@ -203,8 +203,10 @@ IF(NOT DISABLE_SHARED)
SET_TARGET_PROPERTIES(mysqlclient PROPERTIES CLEAN_DIRECT_OUTPUT 1)
SET_TARGET_PROPERTIES(libmysql PROPERTIES CLEAN_DIRECT_OUTPUT 1)
- # Install 3 links to libmysqlclient.so (client_r)
- FOREACH(ver "" "${SHARED_LIB_MAJOR_VERSION}" "${OS_SHARED_LIB_VERSION}")
+ # Install links to libmysqlclient.so (client_r)
+ 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})
GET_VERSIONED_LIBNAME(
"${CMAKE_SHARED_LIBRARY_PREFIX}mysqlclient_r"
"${CMAKE_SHARED_LIBRARY_SUFFIX}"