> not sure which rpath cmake uses to check whether adding a rpath works, > but if it is /tmp or the like that will definitely fail. The ignored locations are listed here: https://github.com/openSUSE/post-build-checks/blob/master/suse-ignored-rpaths.conf so using /tmp/ or a /home as a RPATH would work. But as seen here: [ 67s] CMake Error at cmake_install.cmake:55 (file): [ 67s] file RPATH_CHANGE could not write new RPATH: [ 67s] [ 67s] /usr/lib64 ... it's using RPATH that is listed in (suse-ignored-rpaths.conf). So we think the cmake checking code should be adjusted.