File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,14 @@ set(SOURCES "")
35
35
36
36
# Copy TensorFlow high-level API sources, if they exist.
37
37
if (TENSORFLOW_SWIFT_APIS )
38
+ message (STATUS "Using TensorFlow high-level APIs library." )
39
+
38
40
file (GLOB_RECURSE TENSORFLOW_SWIFT_API_SOURCES
39
41
"${TENSORFLOW_SWIFT_APIS} /Sources/*.swift" )
40
- message (STATUS "Using TensorFlow high-level APIs library." )
41
- list (APPEND SOURCES "${TENSORFLOW_SWIFT_API_SOURCES} " )
42
+ foreach (_TENSORFLOW_SWIFT_APIS_SOURCE ${TENSORFLOW_SWIFT_API_SOURCES} )
43
+ file (TO_CMAKE_PATH ${_TENSORFLOW_SWIFT_APIS_SOURCE} _TENSORFLOW_SWIFT_APIS_SOURCE )
44
+ list (APPEND SOURCES ${_TENSORFLOW_SWIFT_APIS_SOURCE} )
45
+ endforeach ()
42
46
endif ()
43
47
44
48
# When Python exists, PythonConversion.swift imports it, so it must be
You can’t perform that action at this time.
0 commit comments