Skip to content

Commit c524082

Browse files
authored
Merge pull request #13922 from JiabinYang/fix_mac/inference_model_path
Fix Mac problem: inference model not found
2 parents a831ecc + c20f689 commit c524082

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

python/paddle/fluid/tests/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
set(PYTHON_TESTS_DIR ${CMAKE_CURRENT_BINARY_DIR} CACHE PATH "python tests directory")
1+
if(NOT APPLE)
2+
set(PYTHON_TESTS_DIR ${CMAKE_CURRENT_BINARY_DIR} CACHE PATH "python tests directory")
3+
else()
4+
set(PYTHON_TESTS_DIR ${PADDLE_BINARY_DIR}/python/paddle/fluid/tests)
5+
endif(NOT APPLE)
6+
27
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
38
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
49

0 commit comments

Comments
 (0)