From 845997ed2920319d9f3a43fc4f8ae8dfca8737ee Mon Sep 17 00:00:00 2001 From: Cedric CHEDALEUX Date: Thu, 15 Feb 2024 11:20:41 +0100 Subject: [PATCH] linux: fix missing link dependency to dl library dlclose/dlopen were not found on linux due to missing 'dl' libray dependency. Signed-off-by: Cedric CHEDALEUX --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c5565a..4d00ac1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 "$/shaders/"