summaryrefslogtreecommitdiffstats
path: root/cmake/QtRpathHelpers.cmake
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2021-05-01 15:45:28 +0000
committerThiago Macieira <thiago.macieira@intel.com>2021-05-01 16:02:31 -0700
commitd08d456844ba58c977bf83fc8e48085cbc75abfc (patch)
tree9f66dd696a9ef0828dcd6658e78a4f97273718b7 /cmake/QtRpathHelpers.cmake
parent19fa58447ec95958a839f6e314fb307c181c9003 (diff)
cmake: FreeBSD has DF_ORIGIN support
Pick-to: 6.1 6.0 Change-Id: I755911ae7d0341f49039fffd167afce7fe6b2b38 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtRpathHelpers.cmake')
-rw-r--r--cmake/QtRpathHelpers.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtRpathHelpers.cmake b/cmake/QtRpathHelpers.cmake
index 2e84552130..bae222d813 100644
--- a/cmake/QtRpathHelpers.cmake
+++ b/cmake/QtRpathHelpers.cmake
@@ -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 OR SOLARIS)
+ elseif(LINUX OR SOLARIS OR FREEBSD)
set(rpath_rel_base "$ORIGIN")
else()
message(WARNING "No known RPATH_REL_BASE for target platform.")