Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
22cac802
Commit
22cac802
authored
3 years ago
by
Simon Praetorius
Browse files
Options
Downloads
Patches
Plain Diff
Remove deprecated cmake function overload target_link_libraries
parent
fca24bcb
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1036
Remove deprecated cmake function overload target_link_libraries
Pipeline
#40918
passed
3 years ago
Stage: test
Stage: downstream
Pipeline: Dune Nightly Test
#40919
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+3
-0
3 additions, 0 deletions
CHANGELOG.md
cmake/modules/DuneMacros.cmake
+0
-27
0 additions, 27 deletions
cmake/modules/DuneMacros.cmake
with
3 additions
and
27 deletions
CHANGELOG.md
+
3
−
0
View file @
22cac802
...
...
@@ -19,6 +19,9 @@
which also contains a detailed set of instructions on how to update
existing python bindings.
-
Remove deprecated cmake function overload
`target_link_libraries`
# Release 2.8
-
Set minimal required CMake version in cmake to >= 3.13.
...
...
This diff is collapsed.
Click to expand it.
cmake/modules/DuneMacros.cmake
+
0
−
27
View file @
22cac802
...
...
@@ -2,16 +2,6 @@
#
# Documentation of the public API defined in this module:
#
# .. cmake_function:: target_link_libraries
#
# .. cmake_brief::
#
# Overwrite of CMake's :code:`target_link_libraries`. If no interface key
# word (like PUBLIC, INTERFACE, PRIVATE etc.) is given, PUBLIC is added.
# This is to fix problems with CMP0023.
#
# .. cmake_param:: basename
#
# .. cmake_function:: dune_target_link_libraries
#
# .. cmake_param:: BASENAME
...
...
@@ -53,23 +43,6 @@ include(DuneSymlinkOrCopy)
include
(
DuneTestMacros
)
include
(
DuneUtilities
)
macro
(
target_link_libraries
)
# do nothing if not at least the two arguments target and scope are passed
if
(
${
ARGC
}
GREATER_EQUAL 2
)
target_link_libraries_helper
(
${
ARGN
}
)
endif
()
endmacro
(
target_link_libraries
)
# helper for overwritten target_link_libraries to handle arguments more easily
macro
(
target_link_libraries_helper TARGET SCOPE
)
if
(
${
SCOPE
}
MATCHES
"^(PRIVATE|INTERFACE|PUBLIC|LINK_PRIVATE|LINK_PUBLIC|LINK_INTERFACE_LIBRARIES)$"
)
_target_link_libraries
(
${
TARGET
}
${
SCOPE
}
${
ARGN
}
)
else
()
message
(
DEPRECATION
"Calling target_link_libraries without the <scope> argument is deprecated."
)
_target_link_libraries
(
${
TARGET
}
PUBLIC
${
SCOPE
}
${
ARGN
}
)
endif
()
endmacro
(
target_link_libraries_helper
)
macro
(
target_link_dune_default_libraries _target
)
foreach
(
_lib
${
DUNE_LIBS
}
)
target_link_libraries
(
${
_target
}
PUBLIC
${
_lib
}
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment