diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6ac16ab..842d833 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -246,15 +246,15 @@ if(NOT GDCM_INSTALL_LIB_DIR)
 endif()
 
 if(NOT GDCM_INSTALL_DATA_DIR)
-  set(GDCM_INSTALL_DATA_DIR "share/${subdir}")
+  set(GDCM_INSTALL_DATA_DIR "share/${projectname}")
 endif()
 
 if(NOT GDCM_INSTALL_INCLUDE_DIR)
-  set(GDCM_INSTALL_INCLUDE_DIR "include/${subdir}")
+  set(GDCM_INSTALL_INCLUDE_DIR "include/${projectname}")
 endif()
 
 if(NOT GDCM_INSTALL_DOC_DIR)
-  set(GDCM_INSTALL_DOC_DIR "share/doc/${subdir}")
+  set(GDCM_INSTALL_DOC_DIR "share/doc/${projectname}")
 endif()
 
 if(NOT GDCM_INSTALL_MAN_DIR)
@@ -262,7 +262,7 @@ if(NOT GDCM_INSTALL_MAN_DIR)
 endif()
 
 if(NOT GDCM_INSTALL_PACKAGE_DIR)
-  set(GDCM_INSTALL_PACKAGE_DIR ${GDCM_INSTALL_LIB_DIR}/${subdir}
+  set(GDCM_INSTALL_PACKAGE_DIR ${GDCM_INSTALL_LIB_DIR}/${projectname}
     CACHE INTERNAL "")
 endif()
 
