This is probably more an “issue”, but at the moment it is a question - because I want to get this working!
Symptom: I managed to finish my PV custom application with plugins so that it runs locally. Then I managed to get also a “superbuild” run working, including the final ctest -R … that generates the installation package (for Windows, with NSIS). And also the installation went through - only the application did not start!
And it turned out that there is a wrong version of hdf5.dll installed with the generated package.
Further research showed that from the /install subdirectory of the superbuild “target” directory, the software does start indeed, and it contains also another version of the hdf5.dll, and the same also with libpng16.dll and zlib1.dll.
Now the versions that went into the installation package must have originated from my local OSGeo4W installation (see https://www.osgeo.org/projects/osgeo4w/ and https://trac.osgeo.org/osgeo4w/). My first check to just avoid the problem: update that package so the libraries would match and I do not have to care about anything. However, their “current” versions of the dlls are not more current than what I have already installed, so nothing to gain there - if I do not want to break the consistency of that OSGeo4W package, which of course I do not want.
But actually I already have correct dlls that do work - and they were obviously built during the superbuild, but only not finally put into the package!
And there seem to be even options now taking care of the issue: USE_SYSTEM_, which of course I set to NOT using the system versions for the above dlls, so my CMakeCache file shows it correctly:
...
USE_SYSTEM_boost:BOOL=OFF
USE_SYSTEM_bzip2:BOOL=OFF
USE_SYSTEM_hdf5:BOOL=OFF
USE_SYSTEM_numpy:BOOL=OFF
USE_SYSTEM_png:BOOL=OFF
USE_SYSTEM_python3:BOOL=OFF
USE_SYSTEM_qt5:BOOL=ON
USE_SYSTEM_zlib:BOOL=OFF
...
So exactly what I want! But the point is that the settings do not seem to be respected - which is for me obviously an issue.
My question is only: I want this thing to be running as soon as possible, not only once it would be eventually fixed, so I am more or less looking for the script or code where the actual transfer from the …/install folder to the …/_CPackPackages/… folder happens so I can patch it and continue working.
After finding already so many other things in these endless cmake scripts I may eventually even find that one, but if somebody would have a little hint that shortens the exploration I would be happy and say many thanks!