rc2: InnoSetup: relative filenames not interpreted as relative to CMAKE_CURRENT_SOURCE_DIR

Hi,

I’m giving the new innosetup generator a try.
Good news, it works :slight_smile:
I noticed that CPACK_PACKAGE_ICON and CPACK_RESOURCE_LICENSE_FILE don’t interpret relative paths as relative to CMAKE_CURRENT_SOURCE_DIR.
I.e.
set(CPACK_PACKAGE_ICON my.bmp)
is not enough, I have to do
set(CPACK_PACKAGE_ICON “${CMAKE_CURRENT_SOURCE_DIR}/my.bmp”)
the same for CPACK_RESOURCE_LICENSE_FILE.

Is this expected behaviour or a bug ?

I assume you meant CPACK_RESOURCE_FILE_LICENSE. That should always be specified as an absolute path. I don’t have specific notes for CPACK_PACKAGE_ICON, but I would assume it too should be an absolute path. I would assume this needs to be the case because the variables are simply passed through to cpack, they are not used directly during CMake’s configure step. By the time cpack runs, it has no concept of CMAKE_CURRENT_SOURCE_DIR.