I’m trying to build a product and am getting the following error
CMake Error at CMakeLists.txt:410 (add_executable):
[cmake] The install of the strawberry target requires changing an RPATH from the
[cmake] build tree, but this is not supported with the Ninja generator unless on an
[cmake] ELF-based or XCOFF-based platform. The CMAKE_BUILD_WITH_INSTALL_RPATH
[cmake] variable may be set to avoid this relinking step.
The Author pf the product doesn’t use Ninja, so he doesn’t know what the error means.
Thanks
Use the install path for the RPATH.
Normally CMake uses the build tree for the RPATH when building executables etc on systems that use RPATH. When the software is installed the executables etc are relinked by CMake to have the install RPATH. If this variable is set to true then the software is always built with the install path for the RPATH and does not need to be relinked when installed.
This is used to initialize the BUILD_WITH_INSTALL_RPATH target property for all targets.