--- a/src/hugin1/hugin/xrc/data/CMakeLists.txt
+++ b/src/hugin1/hugin/xrc/data/CMakeLists.txt
@@ -1,6 +1,6 @@
 
 FILE(GLOB DATAFILES *.htm *.html *.ico *.jpg *.png *.xpm *.txt *.mk)
-INSTALL(FILES ${DATAFILES} DESTINATION ${DATADIR}/xrc/data)
+INSTALL(FILES ${DATAFILES} DESTINATION ${HUGINDATADIR}/xrc/data)
 
 INSTALL(FILES hugin.png DESTINATION ${DATADIR}/pixmaps)
 ADD_SUBDIRECTORY(help_en_EN)