We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63baa30 commit 91787abCopy full SHA for 91787ab
source/op/CMakeLists.txt
@@ -32,6 +32,20 @@ if (BUILD_PY_IF)
32
)
33
target_include_directories(op_abi PUBLIC ${TensorFlow_INCLUDE_DIRS})
34
target_include_directories(op_grads PUBLIC ${TensorFlow_INCLUDE_DIRS})
35
+ if (APPLE)
36
+ set_target_properties(
37
+ op_abi
38
+ PROPERTIES
39
+ COMPILE_FLAGS ${OP_CXX_FLAG}
40
+ INSTALL_RPATH @loader_path
41
+ )
42
43
+ op_grads
44
45
46
47
48
+ else()
49
set_target_properties(
50
op_abi
51
PROPERTIES
@@ -44,6 +58,7 @@ if (BUILD_PY_IF)
58
COMPILE_FLAGS ${OP_CXX_FLAG}
59
INSTALL_RPATH $ORIGIN
60
61
+ endif ()
62
endif (BUILD_PY_IF)
63
64
if (BUILD_CPP_IF)
0 commit comments