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
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
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
Show more breadcrumbs
LHCb
Geant4
Commits
ac4913f9
Commit
ac4913f9
authored
1 year ago
by
Marco Clemencic
Browse files
Options
Downloads
Patches
Plain Diff
Make sure the cache variable is defined before recording it for downstream
parent
5e093ad0
No related branches found
No related tags found
1 merge request
!108
Make sure the cache variable is defined before recording it for downstream
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/Modules/G4CMakeUtilities.cmake
+4
-1
4 additions, 1 deletion
cmake/Modules/G4CMakeUtilities.cmake
with
4 additions
and
1 deletion
cmake/Modules/G4CMakeUtilities.cmake
+
4
−
1
View file @
ac4913f9
...
...
@@ -220,7 +220,10 @@ function(geant4_export_package_variables _file)
get_property
(
__var_value CACHE
${
__var
}
PROPERTY VALUE
)
get_property
(
__var_type CACHE
${
__var
}
PROPERTY TYPE
)
get_property
(
__var_help CACHE
${
__var
}
PROPERTY HELPSTRING
)
list
(
APPEND __local_build_setting
"geant4_set_and_check_package_variable(
${
__var
}
\"
${
__var_value
}
\"
${
__var_type
}
\"
${
__var_help
}
\"
)"
)
# make sure the cache variable is defined before recording it for geant4_set_and_check_package_variable
if
(
__var_type
)
list
(
APPEND __local_build_setting
"geant4_set_and_check_package_variable(
${
__var
}
\"
${
__var_value
}
\"
${
__var_type
}
\"
${
__var_help
}
\"
)"
)
endif
()
endforeach
()
list
(
APPEND GEANT4_PACKAGE_SETTINGS
${
__local_build_setting
}
)
...
...
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