Skip to content
Snippets Groups Projects
Commit f5de21e7 authored by Gloria Corti's avatar Gloria Corti
Browse files

Merge branch 'clemenci-master-patch-5696' into 'master'

Make sure the cache variable is defined before recording it for downstream

See merge request lhcb/Geant4!108
parents 5e093ad0 ac4913f9
Branches
Tags
1 merge request!108Make sure the cache variable is defined before recording it for downstream
......@@ -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})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment