cmake: FreeBSD has DF_ORIGIN support

Change-Id: I755911ae7d0341f49039fffd167afce7fe6b2b38
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit d08d456844ba58c977bf83fc8e48085cbc75abfc)
(also cherry-picks fadd87ed15b5f7bf6e7aaed1263e2f2d661a623d)
This commit is contained in:
Thiago Macieira 2021-05-01 15:45:28 +00:00
parent c5e6a06305
commit 21f32758d4

View File

@ -20,7 +20,7 @@ function(qt_compute_relative_rpath_base rpath install_location out_var)
# needed in the .prf files, but for CMake we need to prepend them ourselves.
if(APPLE)
set(rpath_rel_base "@loader_path")
elseif(LINUX)
elseif(LINUX OR SOLARIS OR FREEBSD)
set(rpath_rel_base "$ORIGIN")
else()
message(WARNING "No known RPATH_REL_BASE for target platform.")