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
642bcc21
Commit
642bcc21
authored
1 year ago
by
Simon Praetorius
Browse files
Options
Downloads
Patches
Plain Diff
Reverse search for the export name in the full target name
parent
45389dfa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1266
Extract the namespace from the EXPORT_NAME
Pipeline
#62882
passed
1 year ago
Stage: .pre
Stage: test
Stage: downstream
Pipeline: Dune Nightly Test
#62883
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/modules/DuneProject.cmake
+2
-1
2 additions, 1 deletion
cmake/modules/DuneProject.cmake
with
2 additions
and
1 deletion
cmake/modules/DuneProject.cmake
+
2
−
1
View file @
642bcc21
...
...
@@ -316,7 +316,8 @@ endif()
foreach
(
_target
${${
ProjectName
}
_INTERFACE_LIBRARIES
}
)
# find namespaces: alias without export name
get_target_property
(
_export_name
${
_target
}
EXPORT_NAME
)
string
(
REPLACE
"::
${
_export_name
}
"
"::"
_namespace
${
_target
}
)
string
(
FIND
"
${
_target
}
"
"
${
_export_name
}
"
_pos_export_name REVERSE
)
string
(
SUBSTRING
"
${
_target
}
"
0
${
_pos_export_name
}
_namespace
)
list
(
APPEND _namespaces
${
_namespace
}
)
endforeach
()
list
(
REMOVE_DUPLICATES _namespaces
)
...
...
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