Skip to content

Commit

Permalink
Fix vecgeom diagnostic messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj committed Dec 6, 2023
1 parent 9a291c8 commit 047dd83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -332,29 +332,29 @@ if(CELERITAS_USE_VecGeom)

if(CELERITAS_USE_CUDA AND NOT VecGeom_CUDA_FOUND)
celeritas_error_incompatible_option(
"VecGeom installation at ${VECGEOM_INSTALL_DIR} is not CUDA-enabled"
"VecGeom installation at \"${VecGeom_DIR}\" is not CUDA-enabled"
CELERITAS_USE_CUDA
"${VecGeom_CUDA_FOUND}"
)
endif()
if(CELERITAS_REAL_TYPE STREQUAL "float" AND NOT VecGeom_single_precision_FOUND)
celeritas_error_incompatible_option(
"VecGeom installation at ${VECGEOM_INSTALL_DIR} uses double precision"
"VecGeom installation at \"${VecGeom_DIR}\" uses double precision"
CELERITAS_REAL_TYPE
"double"
)
endif()
if(CELERITAS_REAL_TYPE STREQUAL "double" AND VecGeom_single_precision_FOUND)
celeritas_error_incompatible_option(
"VecGeom installation at ${VECGEOM_INSTALL_DIR} uses single precision"
"VecGeom installation at \"${VecGeom_DIR}\" uses single precision"
CELERITAS_REAL_TYPE
"float"
)
endif()
if(CELERITAS_BUILD_TESTS AND NOT VecGeom_GDML_FOUND
AND CELERITAS_CORE_GEO STREQUAL "VecGeom")
celeritas_error_incompatible_option(
"VecGeom installation at ${VECGEOM_INSTALL_DIR} was not built with VGDML:
"VecGeom installation at \"${VecGeom_DIR}\" was not built with VGDML:
celer-sim and many tests will fail"
CELERITAS_BUILD_TESTS
OFF
Expand Down

0 comments on commit 047dd83

Please sign in to comment.