[cmake-developers] [CPack][BUG] Fail to package with CPACK_INSTALLED_DIRECTORIES
CHEVRIER, Marc
marc.chevrier at sap.com
Wed Sep 23 11:00:07 EDT 2015
Any comments about this problem?
From: cmake-developers on behalf of SAP SAP
Date: Tuesday 15 September 2015 09:42
To: "cmake-developers at cmake.org<mailto:cmake-developers at cmake.org>"
Subject: [cmake-developers] [CPack][BUG] Fail to package with CPACK_INSTALLED_DIRECTORIES
Hi,
To enable to handle various packages as part of the same project and to avoid to execute preinstall target before packaging, I rely on CPack variables CPACK_INSTALLED_DIRECTORIES and CPACK_INSTALL_COMMANDS.
Unfortunately, packaging is failing in the following conditions:
* Platform Windows (regardless generator: test done with “Visual Studio” and "Ninja”)
* Install command with PERMISSIONS read-only (like OWNER_READ)
* PROJECT command with LANGUAGES CXX (specifying LANGUAGES NONE is OK !??)
In this case, installed read-only files cannot be copied by CPack.
Attached is a CMakeLists.txt showing the problem:
* Target package-OK generates the expected package (no read-only permissions)
* Target package-KO fails to generate the package (same as previous one except read-only permissions)
Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150923/78d69edc/attachment.html>
More information about the cmake-developers
mailing list