diff --git a/examples/Segmentation/CMakeLists.txt b/examples/Segmentation/CMakeLists.txt
index ced4cccb5aea51af40ee064daea70d9df6772a69..2bf12ba95f68c3bece2ec5969f94d09ba21e0f9b 100644
--- a/examples/Segmentation/CMakeLists.txt
+++ b/examples/Segmentation/CMakeLists.txt
@@ -66,7 +66,7 @@ add_executable(Segmentation SegmentationTest.cpp ${sources})
 MESSAGE( STATUS "${DD4hep_LIBRARIES}" ) 
 MESSAGE( STATUS "${ROOT_LIBRARIES}" ) 
 
-target_link_libraries(Segmentation ${DD4hep_LIBRARIES} ${DD4hep_DIR}/lib/libDDSegmentation.so )
+target_link_libraries(Segmentation ${DD4hep_LIBRARIES} )
 
 #---Rootmap generation--------------------------------------------------------------
 #