CPACK_WIX_TEMPLATE function

Hi,
I try to use cpack to process the wix.

And the WIX.template.in is reference on

    set(CPACK_WIX_TEMPLATE ${CMAKE_CURRENT_SOURCE_DIR}/cmake/wix.template.in)
    set(CPACK_WIX_EXTENSIONS "WixUtilExtension")

Then I found it will generate the directories.wxs automatically when buiding .

The directories.wxs show the dir structure.
It doesn’t match the structure.
The place that CMake/WIX.template.in at master · Kitware/CMake · GitHub

I add the Define the directory structure, like this How To: Add a File to Your Installer