diff --git a/examples/DDCAD/CMakeLists.txt b/examples/DDCAD/CMakeLists.txt
index 78cff8bfd86b622cacd384931eecebe7ae7df11b..dd04947c553f0e31eab0ae1854edf400293a3076 100644
--- a/examples/DDCAD/CMakeLists.txt
+++ b/examples/DDCAD/CMakeLists.txt
@@ -52,6 +52,11 @@ set(ClientTestsEx_INSTALL ${CMAKE_INSTALL_PREFIX}/examples/ClientTests)
 # Single shape tests:
 
 #Reference for test depends on assimp version
+if(assimp_VERSION VERSION_GREATER_EQUAL 5.2.0)
+  set(assimp_duck_VERSION 5.2.0)
+else()
+  set(assimp_duck_VERSION 5.0.0)
+endif()
 configure_file(${CMAKE_CURRENT_LIST_DIR}/compact/Check_Shape_Collada_duck.xml.in
   ${CMAKE_CURRENT_LIST_DIR}/compact/Check_Shape_Collada_duck.xml @ONLY
 )
diff --git a/examples/DDCAD/compact/Check_Shape_Collada_duck.xml.in b/examples/DDCAD/compact/Check_Shape_Collada_duck.xml.in
index 041976f46b191023a7e169aa2099fda6262acab8..234735fc7219c36d32584c37418551d2ef7a7745 100644
--- a/examples/DDCAD/compact/Check_Shape_Collada_duck.xml.in
+++ b/examples/DDCAD/compact/Check_Shape_Collada_duck.xml.in
@@ -20,7 +20,7 @@
       <check vis="Shape1_vis">
         <shape type="CAD_Shape" ref="${DD4hepExamplesINSTALL}/examples/DDCAD/models/Collada/duck.dae" mesh="0"/>
       </check>
-      <test  type="DD4hep_Mesh_Verifier" ref="${DD4hepExamplesINSTALL}/examples/DDCAD/ref/Ref_Collada_duck.txt.@assimp_VERSION@" create="CheckShape_create"/>
+      <test  type="DD4hep_Mesh_Verifier" ref="${DD4hepExamplesINSTALL}/examples/DDCAD/ref/Ref_Collada_duck.txt.@assimp_duck_VERSION@" create="CheckShape_create"/>
     </detector>
   </detectors>
 </lccdd>