Skip to content

Commit

Permalink
Fix installation with GZ_ENABLE_RELOCATABLE_INSTALL=ON
Browse files Browse the repository at this point in the history
By adding the missing DL dependency

Signed-off-by: Silvio Traversaro <silvio@traversaro.it>
  • Loading branch information
traversaro authored Sep 29, 2024
1 parent cd1d3f8 commit a307454
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a307454

Please sign in to comment.