[CMake] CPack RPM generator with @ characters in filename
Matt.Bolger at csiro.au
Matt.Bolger at csiro.au
Mon Sep 1 01:17:39 EDT 2014
Hi,
We're trying to package Qt as part of our app and the RPM generator doesn't like the '@' in some of the QML image file names (not that I blame it :)). I found some mention of this earlier this year http://www.cmake.org/pipermail/cmake/2014-March/057124.html. The simple example below (pointing to the Qt QML dir) shows the issue. I tried listing all the files individually with escape characters but it still ends up with @PROTECTED_AT@ in install_manifest.txt
Is there any way around this and/or should a bug be raised for this?
Thanks
Matt
CMakeLists.txt:
cmake_minimum_required(VERSION 3.0.0)
project(myqmlapp NONE)
set(CPACK_PACKAGE_VERSION_MAJOR 0)
set(CPACK_PACKAGE_VERSION_MINOR 1)
set(CPACK_PACKAGE_VERSION_PATCH 0)
find_path(CMAKE_EXECUTABLES_DIR cmake${CMAKE_EXECUTABLE_SUFFIX})
set(CMAKE_INSTALL_PREFIX "/opt/myqmlapp")
set(CPACK_GENERATOR RPM)
set(CPACK_RPM_PACKAGE_NAME "myqmlapp")
set(CPACK_PACKAGE_FILE_NAME "myqmlapp")
install(DIRECTORY "/home/builder/Qt/5.3/gcc_64/qml/"
DESTINATION "qml")
include(CPack)
Result:
File not found: /home/builder/BuildArea/cpack/_CPack_Packages/Linux/RPM/myqmlapp/usr/qml/QtQuick/Controls/Styles/Base/images/arrow-down at PROTECTED_AT@2x.png
File not found: /home/builder/BuildArea/cpack/_CPack_Packages/Linux/RPM/myqmlapp/usr/qml/QtQuick/Controls/Styles/Base/images/arrow-right at PROTECTED_AT@2x.png
File not found: /home/builder/BuildArea/cpack/_CPack_Packages/Linux/RPM/myqmlapp/usr/qml/QtQuick/Controls/Styles/Base/images/arrow-left at PROTECTED_AT@2x.png
File not found: /home/builder/BuildArea/cpack/_CPack_Packages/Linux/RPM/myqmlapp/usr/qml/QtQuick/Controls/Styles/Base/images/arrow-up at PROTECTED_AT@2x.png
File not found: /home/builder/BuildArea/cpack/_CPack_Packages/Linux/RPM/myqmlapp/usr/qml/QtQuick/Controls/Styles/Base/images/check at PROTECTED_AT@2x.png
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140901/658f95d0/attachment.html>
More information about the CMake
mailing list