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
96b89090
Commit
96b89090
authored
Jul 06, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-16662 CMake warnings: CMP0022
parent
aa19eda7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
CMakeLists.txt
CMakeLists.txt
+2
-4
cmake/libutils.cmake
cmake/libutils.cmake
+1
-2
sql/CMakeLists.txt
sql/CMakeLists.txt
+1
-2
No files found.
CMakeLists.txt
View file @
96b89090
...
...
@@ -14,12 +14,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8.
3
)
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8.
7
)
# explicitly set the policy to OLD
# (cannot use NEW, not everyone is on cmake-2.8.12 yet)
IF
(
POLICY CMP0022
)
CMAKE_POLICY
(
SET CMP0022
OLD
)
CMAKE_POLICY
(
SET CMP0022
NEW
)
ENDIF
()
# We use the LOCATION target property (CMP0026)
...
...
cmake/libutils.cmake
View file @
96b89090
...
...
@@ -269,7 +269,7 @@ MACRO(MERGE_LIBRARIES)
IF
(
ARG_SOVERSION
)
SET_TARGET_PROPERTIES
(
${
TARGET
}
PROPERTIES SOVERSION
${
ARG_VERSION
}
)
ENDIF
()
TARGET_LINK_LIBRARIES
(
${
TARGET
}
${
LIBS
}
)
TARGET_LINK_LIBRARIES
(
${
TARGET
}
LINK_PRIVATE
${
LIBS
}
)
IF
(
ARG_OUTPUT_NAME
)
SET_TARGET_PROPERTIES
(
${
TARGET
}
PROPERTIES OUTPUT_NAME
"
${
ARG_OUTPUT_NAME
}
"
)
ENDIF
()
...
...
@@ -282,7 +282,6 @@ MACRO(MERGE_LIBRARIES)
ENDIF
()
MYSQL_INSTALL_TARGETS
(
${
TARGET
}
DESTINATION
"
${
INSTALL_LIBDIR
}
"
${
COMP
}
)
ENDIF
()
SET_TARGET_PROPERTIES
(
${
TARGET
}
PROPERTIES LINK_INTERFACE_LIBRARIES
""
)
IF
(
ARG_SHARED AND LINK_FLAG_NO_UNDEFINED
)
# Do not allow undefined symbols in shared libraries
GET_TARGET_PROPERTY
(
TARGET_LINK_FLAGS
${
TARGET
}
LINK_FLAGS
)
...
...
sql/CMakeLists.txt
View file @
96b89090
...
...
@@ -307,8 +307,7 @@ TARGET_LINK_LIBRARIES(mysqld sql)
# Provide plugins with minimal set of libraries
SET
(
INTERFACE_LIBS
${
LIBRT
}
)
IF
(
INTERFACE_LIBS
)
SET_TARGET_PROPERTIES
(
mysqld PROPERTIES LINK_INTERFACE_LIBRARIES
"
${
INTERFACE_LIBS
}
"
)
TARGET_LINK_LIBRARIES
(
mysqld LINK_PUBLIC
${
INTERFACE_LIBS
}
)
ENDIF
()
# On Solaris, some extra effort is required in order to get dtrace probes
...
...
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