File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ add_offloadtest_tool(api-query
4
4
target_link_libraries (api-query PRIVATE LLVMSupport OffloadTestAPI )
5
5
6
6
if (APPLE AND OFFLOADTEST_ENABLE_VULKAN )
7
+ get_filename_component (_Vulkan_LIB_DIR ${Vulkan_LIBRARY} DIRECTORY )
7
8
set_property (TARGET api-query APPEND_STRING PROPERTY
8
- LINK_FLAGS " -Wl,-rpath,/usr/local/lib " )
9
+ LINK_FLAGS " -Wl,-rpath,${_Vulkan_LIB_DIR} " )
9
10
endif ()
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ target_link_libraries(offloader PRIVATE
8
8
OffloadTestSupport )
9
9
10
10
if (APPLE AND OFFLOADTEST_ENABLE_VULKAN )
11
+ get_filename_component (_Vulkan_LIB_DIR ${Vulkan_LIBRARY} DIRECTORY )
11
12
set_property (TARGET offloader APPEND_STRING PROPERTY
12
- LINK_FLAGS " -Wl,-rpath,/usr/local/lib " )
13
+ LINK_FLAGS " -Wl,-rpath,${_Vulkan_LIB_DIR} " )
13
14
endif ()
You can’t perform that action at this time.
0 commit comments