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
9470042e
Commit
9470042e
authored
5 years ago
by
Andre Sailer
Committed by
Marko Petric
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
MakeGaudiMap: add DD4hep::DDCore location to (DY)LD_LIBRARY_PATH
parent
24165f99
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/DD4hep.cmake
+1
-0
1 addition, 0 deletions
cmake/DD4hep.cmake
cmake/MakeGaudiMap.cmake
+2
-2
2 additions, 2 deletions
cmake/MakeGaudiMap.cmake
with
3 additions
and
2 deletions
cmake/DD4hep.cmake
+
1
−
0
View file @
9470042e
...
...
@@ -94,6 +94,7 @@ function(dd4hep_generate_rootmap_notapple library)
COMMAND
${
CMAKE_COMMAND
}
-Dlibname=$<TARGET_FILE_NAME:
${
library
}
> -Drootmapfile=
${
rootmapfile
}
-DDD4HEP_LISTCOMPONENTS_CMD=$<TARGET_FILE:DD4hep::listcomponents>
-DLIBRARY_LOCATION=$<TARGET_FILE_DIR:
${
library
}
>
-DDD4HEP_LIBRARY_LOCATION=$<TARGET_FILE_DIR:DD4hep::DDCore>
-DDD4hep_DIR=
${
DD4hep_DIR
}
-P
${
DD4hep_DIR
}
/cmake/MakeGaudiMap.cmake
)
add_custom_target
(
Components_
${
library
}
ALL DEPENDS
${
rootmapfile
}
)
...
...
This diff is collapsed.
Click to expand it.
cmake/MakeGaudiMap.cmake
+
2
−
2
View file @
9470042e
...
...
@@ -7,10 +7,10 @@ message(STATUS " *** Gaudi listcomponents: Generate map for ${libname} ..." )
)
GET_FILENAME_COMPONENT
(
GAUDI_LISTCOMP_INSTALL
${
DD4HEP_LISTCOMPONENTS_CMD
}
DIRECTORY
)
if
(
APPLE
)
SET
(
ENV{DYLD_LIBRARY_PATH}
${
LIBRARY_LOCATION
}
:$ENV{DYLD_LIBRARY_PATH}:$ENV{DD4HEP_LIBRARY_PATH}
)
SET
(
ENV{DYLD_LIBRARY_PATH}
${
LIBRARY_LOCATION
}
:
$
{
DD4HEP_LIBRARY_LOCATION
}
:$
ENV{DYLD_LIBRARY_PATH}:$ENV{DD4HEP_LIBRARY_PATH}
)
##EXECUTE_PROCESS( COMMAND echo DYLD_LIBRARY_PATH = $ENV{DYLD_LIBRARY_PATH} )
else
()
SET
(
ENV{LD_LIBRARY_PATH}
${
LIBRARY_LOCATION
}
:
${
GAUDI_LISTCOMP_INSTALL
}
:$ENV{LD_LIBRARY_PATH}
)
SET
(
ENV{LD_LIBRARY_PATH}
${
LIBRARY_LOCATION
}
:
${
DD4HEP_LIBRARY_LOCATION
}
:$ENV{LD_LIBRARY_PATH}
)
endif
()
# EXECUTE_PROCESS( COMMAND echo LD_LIBRARY_PATH = $ENV{LD_LIBRARY_PATH} )
EXECUTE_PROCESS
(
COMMAND
...
...
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