From d08d456844ba58c977bf83fc8e48085cbc75abfc Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sat, 1 May 2021 15:45:28 +0000 Subject: [PATCH] cmake: FreeBSD has DF_ORIGIN support Pick-to: 6.1 6.0 Change-Id: I755911ae7d0341f49039fffd167afce7fe6b2b38 Reviewed-by: Alexandru Croitor --- cmake/QtRpathHelpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtRpathHelpers.cmake b/cmake/QtRpathHelpers.cmake index 2e845521303..bae222d813a 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.")