From a9af9847376267ed31592892121b03841a27a492 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Mon, 30 Sep 2024 19:24:46 +0200 Subject: [PATCH] Fix installation with GZ_ENABLE_RELOCATABLE_INSTALL=ON (#1071) By adding the missing DL dependency Signed-off-by: Silvio Traversaro --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 96ce89131..bf7aa7098 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -154,6 +154,11 @@ set(GZ_RENDERING_ENGINE_RELATIVE_INSTALL_DIR set(GZ_RENDERING_ENGINE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/${GZ_RENDERING_ENGINE_RELATIVE_INSTALL_DIR}) +#-------------------------------------- +# Find DL if doing relocatable installation +if (GZ_ENABLE_RELOCATABLE_INSTALL) + gz_find_package(DL REQUIRED) +endif() #-------------------------------------- # Find dependencies that we ignore for Visual Studio