--- a/src/hugin1/hugin/xrc/CMakeLists.txt
+++ b/src/hugin1/hugin/xrc/CMakeLists.txt
@@ -27,6 +27,6 @@
     pano_panel.xrc)
 
 
-INSTALL(FILES ${XRCFILES} DESTINATION ${DATADIR}/xrc)
+INSTALL(FILES ${XRCFILES} DESTINATION ${HUGINDATADIR}/xrc)
 
 add_subdirectory(data)