Skip to content

Commit 27eff99

Browse files
authored
Add correct rpath for Vulkan SDK on macOS (#17)
1 parent 6d97ae1 commit 27eff99

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ FetchContent_MakeAvailable(imgui)
6767

6868
if (APPLE)
6969
add_compile_definitions(__APPLE__)
70+
71+
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
72+
set(CMAKE_INSTALL_RPATH "/usr/local/lib")
7073
endif ()
7174

7275
if (CMAKE_BUILD_TYPE MATCHES Debug)
@@ -89,4 +92,4 @@ add_subdirectory(apps)
8992
# COMMAND ${CMAKE_COMMAND} -E copy_directory
9093
# "${PROJECT_BINARY_DIR}/shaders"
9194
# "$<TARGET_FILE_DIR:vulkan_splatting>/shaders"
92-
#)
95+
#)

0 commit comments

Comments
 (0)