Skip to content
Snippets Groups Projects
Commit ac4913f9 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

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!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