File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
packages/react-native/ReactAndroid/cmake-utils Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -31,20 +31,13 @@ if(CCACHE_FOUND)
31
31
endif (CCACHE_FOUND )
32
32
33
33
set (BUILD_DIR ${PROJECT_BUILD_DIR} )
34
- if (CMAKE_HOST_WIN32 )
35
- string (REPLACE "\\ " "/" BUILD_DIR ${BUILD_DIR} )
36
- string (REPLACE "\\ " "/" REACT_ANDROID_DIR ${REACT_ANDROID_DIR} )
37
- endif ()
34
+ file (TO_CMAKE_PATH "${BUILD_DIR} " BUILD_DIR )
35
+ file (TO_CMAKE_PATH "${REACT_ANDROID_DIR} " REACT_ANDROID_DIR )
38
36
39
37
file (GLOB input_SRC CONFIGURE_DEPENDS
40
38
${REACT_ANDROID_DIR} /cmake-utils/default-app-setup/*.cpp
41
39
${BUILD_DIR} /generated/autolinking/src/main/jni/*.cpp )
42
40
43
- # Ensure that `input_SRC` paths use forward slashes
44
- foreach (path IN LISTS input_SRC )
45
- string (REPLACE "\\ " "/" path "${path} " )
46
- endforeach ()
47
-
48
41
add_library (${CMAKE_PROJECT_NAME} SHARED ${input_SRC} )
49
42
50
43
target_include_directories (${CMAKE_PROJECT_NAME}
You can’t perform that action at this time.
0 commit comments