File tree Expand file tree Collapse file tree 3 files changed +5
-17
lines changed Expand file tree Collapse file tree 3 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,10 @@ if (TENSORFLOW_SWIFT_APIS)
41
41
endforeach ()
42
42
endif ()
43
43
44
- get_filename_component (TensorFlow_LIBRARY_DIR ${TF_LIBRARY} DIRECTORY )
45
44
add_swift_target_library (swiftTensorFlow ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
46
45
"${SOURCES} "
47
46
48
- PRIVATE_LINK_LIBRARIES " ${TF_LIBRARIES} "
47
+ PRIVATE_LINK_LIBRARIES ${TF_LIBRARY}
49
48
SWIFT_MODULE_DEPENDS SwiftOnoneSupport
50
49
SWIFT_MODULE_DEPENDS_IOS Darwin
51
50
SWIFT_MODULE_DEPENDS_OSX Darwin
@@ -59,7 +58,7 @@ add_swift_target_library(swiftTensorFlow ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_
59
58
SWIFT_MODULE_DEPENDS Python
60
59
SWIFT_COMPILE_FLAGS
61
60
${swift_stdlib_compile_flags}
62
- -Xcc -I${CMAKE_CURRENT_SOURCE_DIR}
61
+ -Xcc -I${TENSORFLOW_SWIFT_APIS}/Sources/CTensorFlow
63
62
-Xcc -I${TF_INCLUDE_DIR}
64
63
LINK_FLAGS
65
64
${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}
@@ -82,6 +81,8 @@ swift_install_in_component(DIRECTORY ${TF_INCLUDE_DIR}/tensorflow/c/
82
81
PATTERN tf_status.h
83
82
PATTERN tf_tensor.h
84
83
PATTERN eager/c_api.h )
85
- swift_install_in_component (FILES module.modulemap CTensorFlow.h
84
+ swift_install_in_component (FILES
85
+ ${TENSORFLOW_SWIFT_APIS} /Sources/CTensorFlow/module.modulemap
86
+ ${TENSORFLOW_SWIFT_APIS} /Sources/CTensorFlow/CTensorFlow.h
86
87
DESTINATION lib/swift/tensorflow
87
88
COMPONENT stdlib )
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments