Commit e238d5f9 authored by Sang Ik Lee's avatar Sang Ik Lee Committed by Scott Cyphers

mklml on linux has no soname set. This will cause linking against the full path…

mklml on linux has no soname set. This will cause linking against the full path for mklml when using prebuilt mkldnn and mklml. (#2851)
parent 79415315
......@@ -64,6 +64,9 @@ if(MKLDNN_INCLUDE_DIR AND MKLDNN_LIB_DIR)
set_property(TARGET libmkl PROPERTY IMPORTED_LOCATION ${MKLML_LIB_DIR}/${MKLML_LIB})
set_target_properties(libmkl PROPERTIES
IMPORTED_LINK_INTERFACE_LIBRARIES ${MKLML_LIB_DIR}/${OMP_LIB})
if(LINUX)
set_property(TARGET libmkl PROPERTY IMPORTED_NO_SONAME 1)
endif()
endif()
if(WIN32)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment