From 21f32758d4af9352be150d751cebc9c1f6bd6136 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 Change-Id: I755911ae7d0341f49039fffd167afce7fe6b2b38 Reviewed-by: Alexandru Croitor (cherry picked from commit d08d456844ba58c977bf83fc8e48085cbc75abfc) (also cherry-picks fadd87ed15b5f7bf6e7aaed1263e2f2d661a623d) --- cmake/QtRpathHelpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtRpathHelpers.cmake b/cmake/QtRpathHelpers.cmake index 126ed2c50f2..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) + elseif(LINUX OR SOLARIS OR FREEBSD) set(rpath_rel_base "$ORIGIN") else() message(WARNING "No known RPATH_REL_BASE for target platform.")