[CMake] Install( Targets ) loses executable permission

J Decker d3ck0r at gmail.com
Tue Apr 21 22:01:40 EDT 2015


Basically this is the command I use to install some plugins...
BINARY_OUTPUT_DIR is ${CMAKE_INSTALL_PREFIX}/bin
project_target is a argument to the macro and it's 'plugins'


    install( TARGETS ${proj} ·
        RUNTIME DESTINATION ${BINARY_OUTPUT_DIR}/${project_target} ·
        LIBRARY DESTINATION ${BINARY_OUTPUT_DIR}/${project_target} ·
        ARCHIVE DESTINATION lib·
        )·


(expanded example)
    install( TARGETS tasks.isp ·
        RUNTIME DESTINATION bin/plugins
        LIBRARY DESTINATION bin/plugins
        ARCHIVE DESTINATION lib·
        )·

This is basically the target defintiion....

add_library(tasks.isp SHARED ${SOURCES} )
SET_TARGET_PROPERTIES(tasks.isp PROPERTIES
                  SUFFIX ""
                  PREFIX ""
)


-----
the library is built 'tasks.isp' with rwxr-xr-x
but it's installed with rw-r--r--

(platform is rasberry pi)
cmake version is 3.2.2 (custom build, version in apt-get is only 2.8
something)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150421/4cb6cceb/attachment.html>


More information about the CMake mailing list