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
7095d983
Commit
7095d983
authored
6 years ago
by
Hadrien Grasland
Committed by
Marko Petric
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Set the DD4hep path based on the CMake file location
parent
d39f2f73
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/DD4hepConfig.cmake.in
+10
-2
10 additions, 2 deletions
cmake/DD4hepConfig.cmake.in
with
10 additions
and
2 deletions
cmake/DD4hepConfig.cmake.in
+
10
−
2
View file @
7095d983
...
...
@@ -13,15 +13,23 @@
# @author Jan Engels, Desy
##############################################################################
# Locate the DD4hep install directory. This CMake file is installed in two
# different locations (root and "cmake" subdir) that we must disambiguate.
get_filename_component(_thisdir "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_lastdir "${_thisdir}" NAME)
if (_lastdir STREQUAL "cmake")
get_filename_component(_thisdir "${_thisdir}" PATH)
endif()
if( DEFINED ENV{DD4hep_DIR} )
set ( DD4hep_DIR "$ENV{DD4hep_DIR}" )
else()
set ( DD4hep_DIR "
@CMAKE_INSTALL_PREFIX@
" )
set ( DD4hep_DIR "
${_thisdir}
" )
endif()
if( DEFINED ENV{DD4hep_ROOT} )
set ( DD4hep_ROOT "$ENV{DD4hep_ROOT}" )
else()
set ( DD4hep_ROOT "
@CMAKE_INSTALL_PREFIX@
" )
set ( DD4hep_ROOT "
${_thisdir}
" )
endif()
set ( DD4hep_VERSION "@DD4hep_VERSION@" )
set ( DD4hep_SOVERSION "@DD4hep_SOVERSION@" )
...
...
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