Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
a4ee689a
Commit
a4ee689a
authored
5 years ago
by
Andre Sailer
Committed by
Marko Petric
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Listcomponents: add setting of environment variable to listcomponents call
parent
6e62e40f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/DD4hep.cmake
+6
-3
6 additions, 3 deletions
cmake/DD4hep.cmake
with
6 additions
and
3 deletions
cmake/DD4hep.cmake
+
6
−
3
View file @
a4ee689a
...
...
@@ -71,6 +71,9 @@ endfunction()
function
(
dd4hep_generate_rootmap library
)
if
(
APPLE
)
SET
(
ENV{DYLD_LIBRARY_PATH}
${
LIBRARY_OUTPUT_PATH
}
:$ENV{DYLD_LIBRARY_PATH}:$ENV{DD4HEP_LIBRARY_PATH}
)
set
(
ENV_VAR DYLD_LIBRARY_PATH
)
else
()
set
(
ENV_VAR LD_LIBRARY_PATH
)
endif
()
if
(
NOT DD4hep_DIR
)
...
...
@@ -80,9 +83,9 @@ function(dd4hep_generate_rootmap library)
add_custom_command
(
OUTPUT
${
rootmapfile
}
DEPENDS
${
library
}
COMMAND echo DYLD_LIBRARY_PATH: $ENV{DYLD_LIBRARY_PATH}
COMMAND echo LD_LIBRARY_PATH: $ENV{LD_LIBRARY_PATH}
COMMAND DD4hep::listcomponents -o
${
rootmapfile
}
$<TARGET_FILE:
${
library
}
>
COMMAND
${
ENV_VAR
}
=$ENV{
${
ENV_VAR
}
}
echo DYLD_LIBRARY_PATH: $ENV{DYLD_LIBRARY_PATH}
COMMAND
${
ENV_VAR
}
=$ENV{
${
ENV_VAR
}
}
echo LD_LIBRARY_PATH: $ENV{LD_LIBRARY_PATH}
COMMAND
${
ENV_VAR
}
=$ENV{
${
ENV_VAR
}
} $<TARGET_FILE:
DD4hep::listcomponents
>
-o
${
rootmapfile
}
$<TARGET_FILE:
${
library
}
>
WORKING_DIRECTORY
${
LIBRARY_OUTPUT_PATH
}
)
...
...
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