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
7bb8e28a
Commit
7bb8e28a
authored
5 years ago
by
Andre Sailer
Committed by
Marko Petric
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
dd4hep_generate_rootmap: perfection
parent
a4ee689a
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
+2
-6
2 additions, 6 deletions
cmake/DD4hep.cmake
with
2 additions
and
6 deletions
cmake/DD4hep.cmake
+
2
−
6
View file @
7bb8e28a
...
...
@@ -69,22 +69,18 @@ endfunction()
# Create the .components file needed by the plug-in system.
#---------------------------------------------------------------------------------------------------
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
()
SET
(
ENV{
${
ENV_VAR
}
} $<TARGET_FILE_DIR:
${
library
}
>:$ENV{
${
ENV_VAR
}
}:$ENV{DD4HEP_LIBRARY_PATH}
)
if
(
NOT DD4hep_DIR
)
SET
(
DD4hep_DIR
${
CMAKE_SOURCE_DIR
}
)
endif
()
set
(
rootmapfile
${
CMAKE_SHARED_MODULE_PREFIX
}${
library
}
.components
)
add_custom_command
(
OUTPUT
${
rootmapfile
}
DEPENDS
${
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