Open Silentd00m opened 2 years ago
set(CMAKE_SKIP_RPATH OFF CACHE BOOL "Skip RPATH" FORCE)
has already been removed from the 4.0 branch.
I think it can also be removed from the 3.2 branch.
I noticed Ryan adds/added these to lots of his projects, probably because the build-time rpath should not be present in installed libraries.
When doing cmake --install $buildfolder
, by default, CMake will remove the runpath.
Currently projects using CPM that use this library will have their RPATH broken for all targets defined after the
CPMAddPackage
for physfs, unlessCMAKE_SKIP_RPATH
is force-set to OFF.Example:
Having an option to turn this behaviour off would be appreciated.
I can provide a small pull request that implements this, if this feature is accepted.