[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Removing RPATH from existing binaries
From:       Alexander Neundorf <neundorf () kde ! org>
Date:       2019-01-07 20:27:59
Message-ID: 1620872.bSSi3M3vBF () linux-l7nd
[Download RAW message or body]

On 2019 M01 5, Sat 08:06:31 CET Federico Milano wrote:
> Hi. When packaging my application, I'm using install (FILES...) to copy
> some third party executables to my binary folder.
> 
> 1. I do not know if I'm doing it right or if I should use install
> (PROGRAMS...)
> 2. Some of the binaries have a RPATH, and I want to remove it. Is there any
> CMake macro/function to do that, or should I call directly chrpath?

if you look at the generated cmake_install.cmake scripts, you'll see the calls 
cmake uses to modify the RPATH when installing, I think it's some undocumented 
subfunction of the file() command.

Alex

-- 

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:
https://cmake.org/mailman/listinfo/cmake


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic