Skip to content

Commit

Permalink
Add correct rpath for Vulkan SDK on macOS (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
shg8 authored Mar 14, 2024
1 parent 6d97ae1 commit 27eff99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ FetchContent_MakeAvailable(imgui)

if (APPLE)
add_compile_definitions(__APPLE__)

set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
set(CMAKE_INSTALL_RPATH "/usr/local/lib")
endif ()

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

0 comments on commit 27eff99

Please sign in to comment.