Skip to content

Commit

Permalink
linux: fix missing link dependency to dl library
Browse files Browse the repository at this point in the history
dlclose/dlopen were not found on linux due to missing 'dl' libray
dependency.

Signed-off-by: Cedric CHEDALEUX <[email protected]>
  • Loading branch information
cedric-chedaleux committed Feb 15, 2024
1 parent 8b0b7c4 commit 845997e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ target_include_directories(vulkan_splatting PUBLIC ${Vulkan_INCLUDE_DIRS} ${GLM_

target_link_libraries(vulkan_splatting PUBLIC glfw libenvpp::libenvpp)
target_link_libraries(vulkan_splatting PUBLIC Vulkan::Vulkan)
if (UNIX)
target_link_libraries(vulkan_splatting PUBLIC ${CMAKE_DL_LIBS})
endif ()

add_custom_command(TARGET vulkan_splatting POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory "$<TARGET_FILE_DIR:vulkan_splatting>/shaders/"
Expand Down

0 comments on commit 845997e

Please sign in to comment.