Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Geant4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Ryan Bernard Calladine
Geant4
Commits
ff778085
Commit
ff778085
authored
9 years ago
by
Ben Couturier
Browse files
Options
Downloads
Patches
Plain Diff
Added cached variables for SRCS_REPOSITORY and GEANT4_TAG
parent
e233aa9b
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
CMakeLists.txt
+2
-0
2 additions, 0 deletions
CMakeLists.txt
Geant4/G4config/CMakeLists.txt
+19
-16
19 additions, 16 deletions
Geant4/G4config/CMakeLists.txt
with
21 additions
and
16 deletions
CMakeLists.txt
+
2
−
0
View file @
ff778085
...
...
@@ -2,6 +2,8 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.5)
# NO_NINJA : Geant4 build fails with Ninja
set
(
GEANT4_SRCS_REPOSITORY https://gitlab.cern.ch/lhcb/Geant4-srcs.git CACHE STRING
"Repository for Geant4 sources"
)
find_package
(
GaudiProject
)
gaudi_project
(
Geant4 v96r4p3
DATA Geant4Files VERSION v96r*
)
...
...
This diff is collapsed.
Click to expand it.
Geant4/G4config/CMakeLists.txt
+
19
−
16
View file @
ff778085
...
...
@@ -21,29 +21,32 @@ else()
set
(
G4DATA ../share
)
endif
()
if
(
DEFINED ENV{G4_NATIVE_VERSION}
)
set
(
Geant4_tag $ENV{G4_NATIVE_VERSION}
)
if
(
NOT Geant4_tag MATCHES
"^4
\\
."
)
# G4_NATIVE_VERSION might not contain the initial '4.' that we need
# see https://its.cern.ch/jira/browse/LHCBGAUSS-43
set
(
Geant4_tag 4.
${
Geant4_tag
}
)
if
(
NOT GEANT4_TAG
)
if
(
DEFINED ENV{G4_NATIVE_VERSION}
)
set
(
GEANT4_TAG $ENV{G4_NATIVE_VERSION}
)
if
(
NOT GEANT4_TAG MATCHES
"^4
\\
."
)
# G4_NATIVE_VERSION might not contain the initial '4.' that we need
# see https://its.cern.ch/jira/browse/LHCBGAUSS-43
set
(
GEANT4_TAG 4.
${
GEANT4_TAG
}
)
endif
()
if
(
NOT GEANT4_TAG MATCHES
"^geant"
)
set
(
GEANT4_TAG geant
${
GEANT4_TAG
}
)
endif
()
else
()
set
(
GEANT4_TAG
${
CMAKE_PROJECT_VERSION
}
)
endif
()
if
(
NOT Geant4_tag MATCHES
"^geant"
)
set
(
Geant4_tag geant
${
Geant4_tag
}
)
# Special mapping of version HEAD
if
(
GEANT4_TAG STREQUAL
"HEAD"
)
set
(
GEANT4_TAG master
)
endif
()
else
()
set
(
Geant4_tag
${
CMAKE_PROJECT_VERSION
}
)
endif
()
# Special mapping of version HEAD
if
(
Geant4_tag STREQUAL
"HEAD"
)
set
(
Geant4_tag master
)
set
(
GEANT4_TAG
${
GEANT4_TAG
}
CACHE STRING
"Tag of Geant4 to get from the Geant4-srcs repository"
)
endif
()
include
(
ExternalProject
)
ExternalProject_Add
(
Geant4
GIT_REPOSITORY
https://gitlab.cern.ch/lhcb/Geant4-srcs.git
GIT_TAG
${
G
eant4_tag
}
GIT_REPOSITORY
${
GEANT4_SRCS_REPOSITORY
}
GIT_TAG
${
G
EANT4_TAG
}
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE=
${
CMAKE_SOURCE_DIR
}
/toolchain.cmake
-DGEANT4_BUILD_CXXSTD=
${
GAUDI_CXX_STANDARD
}
-DGEANT4_INSTALL_DATA=OFF
...
...
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