From a3074544bd88627ac0060ce8d895eabc89bbe197 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Sun, 29 Sep 2024 20:58:27 +0200 Subject: [PATCH] Fix installation with GZ_ENABLE_RELOCATABLE_INSTALL=ON 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