Skip to content

Commit eb12d61

Browse files
committed
Fix DLSS when instant-ngp is launched from project root on Linux
1 parent 92c1e10 commit eb12d61

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ if (NGP_BUILD_EXECUTABLE)
370370
endif()
371371
else()
372372
add_custom_command(TARGET instant-ngp POST_BUILD COMMAND ${CMAKE_COMMAND} -E create_symlink $<TARGET_FILE:instant-ngp> "${NGP_BINARY_FILE}")
373+
374+
if (NGP_VULKAN)
375+
add_custom_command(TARGET instant-ngp POST_BUILD COMMAND "ln" -s -f "${NGX_SHARED_LIB}" "${CMAKE_CURRENT_SOURCE_DIR}/")
376+
endif()
373377
endif()
374378
endif(NGP_BUILD_EXECUTABLE)
375379

0 commit comments

Comments
 (0)