diff --git a/CMakeLists.txt b/CMakeLists.txt
index 36f5f7a4da46ba2fe85a30375479d4e8b3b04b04..de2ea0c6107b2a715bcb908bf20ee4540f4fb257 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,9 +13,9 @@ find_package( DD4hep REQUIRED COMPONENTS DDCore DDG4 )
 #-----------------------------------------------------------------------------------
 set(a_lib_name detector_template)
 
-if("${PROJECT_NAME}" STREQUAL "detector_template")
+if("${PROJECT_NAME}" STREQUAL "reference_detector")
   message(WARNING "
-  Current project and library is named detector_template!
+  Current project and library is named reference_detector!
   Please rename library to match corresponding detector implmentation.")
 endif()