Skip to content

Commit b1517a0

Browse files
committed
fix android build error on windows
1 parent 52b28e2 commit b1517a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ project(FastOpencv)
44
set (CMAKE_VERBOSE_MAKEFILE ON)
55
set (CMAKE_CXX_STANDARD 20)
66

7+
file(TO_CMAKE_PATH "${NODE_MODULES_DIR}" NODE_MODULES_DIR)
8+
79
find_package(ReactAndroid REQUIRED CONFIG)
810
find_package(fbjni REQUIRED CONFIG)
911
find_package(OpenCV REQUIRED COMPONENTS OpenCV::opencv_java4)
1012

1113
add_library(react-native-fast-opencv
1214
SHARED
13-
../node_modules/react-native/ReactCommon/jsi/jsi/jsi.cpp
15+
"${NODE_MODULES_DIR}/react-native/ReactCommon/jsi/jsi/jsi.cpp"
1416
../cpp/react-native-fast-opencv.cpp
1517
../cpp/react-native-fast-opencv.h
1618
cpp-adapter.cpp

0 commit comments

Comments
 (0)