Skip to content

Commit d0617b5

Browse files
authored
Merge pull request #29063 from compnerd/non-normative
TensorFlow: normalise path before using (NFCI)
2 parents ebfd58a + 605da2e commit d0617b5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

stdlib/public/TensorFlow/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,14 @@ set(SOURCES "")
3535

3636
# Copy TensorFlow high-level API sources, if they exist.
3737
if (TENSORFLOW_SWIFT_APIS)
38+
message(STATUS "Using TensorFlow high-level APIs library.")
39+
3840
file(GLOB_RECURSE TENSORFLOW_SWIFT_API_SOURCES
3941
"${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()
4246
endif()
4347

4448
# When Python exists, PythonConversion.swift imports it, so it must be

0 commit comments

Comments
 (0)