Re: [CMake] WIX installer fails for shared files

2015-11-10 Thread Mark Stijnman
On Tue, Nov 10, 2015 at 9:22 AM, Nils Gladitz wrote: > On 11/09/2015 08:29 PM, Mark Stijnman wrote: > > I think there should be a change in the CMake/CPack behavior here, > regardless of whether the WiX generator will be extended to support this > use case. For generators that support the same fi

Re: [CMake] WIX installer fails for shared files

2015-11-10 Thread Nils Gladitz
On 11/09/2015 08:29 PM, Mark Stijnman wrote: Not in WiX, though - installing the same file from more than one feature is common practice. The shared component will just get a higher reference count. Installing different files to the same location, on the other hand, *is* an error in WiX, whic

Re: [CMake] WIX installer fails for shared files

2015-11-09 Thread Mark Stijnman
Hi Nils, thanks for the reply. On Mon, Nov 9, 2015 at 4:09 PM, Nils Gladitz wrote: > CMake does not implement any diagnostics that would prevent you from doing > so but installing distinct files (or even the same file multiple times) to > the same destination path is ill defined irregardless of

Re: [CMake] WIX installer fails for shared files

2015-11-09 Thread Nils Gladitz
On 11/06/2015 08:06 PM, Mark Stijnman wrote: install(FILES 1.txt common.txt DESTINATION bin COMPONENT comp1) install(FILES 2.txt common.txt DESTINATION bin COMPONENT comp2) CMake does not implement any diagnostics that would prevent you from doing so but installing distinct files (or even th

[CMake] WIX installer fails for shared files

2015-11-06 Thread Mark Stijnman
I'm using CPack with WIX to create multi-component installers, and I'm having issues with components (or WIX features) that share files. A common use case would be two executables which require the same DLLs. To reproduce the issue, you can use following minimal CMakeLists.txt with three text files