mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
Update property file for Nuget Linux package (#369)
* Copy mkldnn to output folder for linux. Nuget doesn't resolve dll dependency correctly within a package * Modify to copy all dlls to output folder * update rpath for shared library * Simplified linker flags for RPATH * Removing copying of dlls to output folder, since setting RPATH works fine now
This commit is contained in:
parent
f53cc032db
commit
ccca1e9402
1 changed files with 4 additions and 0 deletions
|
|
@ -39,6 +39,10 @@ else()
|
|||
set(ONNXRUNTIME_SO_LINK_FLAG "-DEF:${SYMBOL_FILE}")
|
||||
endif()
|
||||
|
||||
if (NOT WIN32)
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-rpath='$ORIGIN'")
|
||||
endif()
|
||||
|
||||
#The BEGIN_WHOLE_ARCHIVE/END_WHOLE_ARCHIVE part should contain the implementations of all the C API functions
|
||||
target_link_libraries(onnxruntime PRIVATE
|
||||
${BEGIN_WHOLE_ARCHIVE}
|
||||
|
|
|
|||
Loading…
Reference in a new issue