Hey guys, I am creating a RPM package with CMake. Here is a small example of how it looks:
======== cmake_minimum_required(VERSION 3.5) set(BOOST_LIB "${CMAKE_CURRENT_SOURCE_DIR}/boost") file(GLOB_RECURSE BOOST_LIBRARIES ${BOOST_LIB}/*) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/usr/bin/executable DESTINATION bin) install(FILES ${BOOST_LIBRARIES} DESTINATION lib) set(CPACK_GENERATOR "RPM") set(CPACK_PACKAGE_VERSION 6.5) set(CPACK_PACKAGE_NAME "executable-proj") # set(CPACK_RPM_PACKAGE_NAME "executable-proj") set(CPACK_RPM_PACKAGE_SUMMARY "Simple executable project") set(CPACK_RPM_PACKAGE_ARCHITECTURE x86_64) set(CPACK_PACKAGE_VENDOR "Some Vendor Limited") set(CPACK_RPM_PACKAGE_MAINTAINER "Some Vendor Limited") set(CPACK_RPM_PACKAGE_AUTOREQ "NO") set(CPACK_PACKAGE_EXECUTABLES "executable") INCLUDE(CPack) ====== Before running this cmake script, I am setting executable permissions on the build machine, where the package is created. Then, I create a docker image, where this RPM is downloaded and installed. But when I want to start the executable within a docker container, then I am getting the message "permission denied". When I look at the permissions of my installed package, then I see, I only have read permissions. So the question is: What can I do for getting executable permissions for this executable? Is this a CMake/CPack problem?
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake