[CMake] Setting permissions with CPack/WiX installer

Nils Gladitz nilsgladitz at gmail.com
Mon Apr 8 04:48:25 EDT 2019


On Mon, Apr 8, 2019 at 2:07 AM Cook, Steven (G&I) <Steven.Cook at riotinto.com>
wrote:

> Hi Nils,
>
>
>
> > Been a while since I looked at this but it still seems to work for me
> in 3.14.0.
>
> > Corresponding <Permission> elements are generated in files.wxs:
>
>
>
> Can you please tell me the commands you used to run cpack? I did the
> following, which didn’t give the Permission elements.
>

Remove this line
https://github.com/ngladitz/cmake-wix-testsuite/blob/master/CMakeLists.txt#L15
(I think it is superfluous/wrong and errors out when using newer cmake
versions).
>From a command line environment where your compiler is properly set up and
ninja is in PATH configure the root of the project with the Ninja generator
(currently hardcoded in the tests); use an out of source build directory
and set the REFERENCE_CMAKE_BIN_DIR cache variable to the bin-Directory of
the CMake installation you want to test.
Run e.g. "ctest -R properties" from the build directory.

Nils
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190408/a57311cd/attachment.html>


More information about the CMake mailing list