Skip to content

Commit a9af984

Browse files
authored
Fix installation with GZ_ENABLE_RELOCATABLE_INSTALL=ON (#1071)
By adding the missing DL dependency Signed-off-by: Silvio Traversaro <silvio@traversaro.it>
1 parent cd1d3f8 commit a9af984

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ set(GZ_RENDERING_ENGINE_RELATIVE_INSTALL_DIR
154154
set(GZ_RENDERING_ENGINE_INSTALL_DIR
155155
${CMAKE_INSTALL_PREFIX}/${GZ_RENDERING_ENGINE_RELATIVE_INSTALL_DIR})
156156

157+
#--------------------------------------
158+
# Find DL if doing relocatable installation
159+
if (GZ_ENABLE_RELOCATABLE_INSTALL)
160+
gz_find_package(DL REQUIRED)
161+
endif()
157162

158163
#--------------------------------------
159164
# Find dependencies that we ignore for Visual Studio

0 commit comments

Comments
 (0)