[CMake] CPACK WIX shortcuts

Nils Gladitz nilsgladitz at gmail.com
Thu Nov 3 15:10:16 EDT 2016


On 03.11.2016 19:32, Tiago Macarios wrote:
>
>
> And I am building it like so:
> mkdir build
> cd build
> cmake ..
> cmake --build . --config Release
> cpack -G WIX

You are using a multi-configuration generator (Visual Studio).

As you do in the build try specifying a configuration to be packaged 
when invoking cpack (the "PACKAGE" target that cmake generates does this 
by default):
e.g. cpack -C Release -G WIX

The install properties are only generated for the known configurations.

Nils


More information about the CMake mailing list