Skip to content

Commit a8fcb75

Browse files
authored
Merge pull request #661 from 0ct0cat/master
[MNN:Bugfix] fix complier error on ubuntu 18.04
2 parents 6227976 + 12143de commit a8fcb75

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

project/android/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ buildscript {
1111
}
1212

1313
repositories {
14+
google()
15+
jcenter()
1416
mavenLocal()
1517
}
1618

test/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
IF(MNN_BUILD_TEST)
2-
file(GLOB_RECURSE Files ${CMAKE_CURRENT_LIST_DIR}/*.cpp ${CMAKE_CURRENT_LIST_DIR}/*.mm)
2+
if(APPLE)
3+
file(GLOB_RECURSE Files ${CMAKE_CURRENT_LIST_DIR}/*.cpp ${CMAKE_CURRENT_LIST_DIR}/*.mm)
4+
else()
5+
file(GLOB_RECURSE Files ${CMAKE_CURRENT_LIST_DIR}/*.cpp)
6+
endif()
37
add_executable(run_test.out ${Files})
48
target_link_libraries(run_test.out ${MNN_DEPS})
59
target_include_directories(run_test.out PRIVATE ${CMAKE_CURRENT_LIST_DIR}/)

0 commit comments

Comments
 (0)