Skip to content

Commit 5545d64

Browse files
committed
add warning when ON_INFER is OFF
test=develop
1 parent 8e3638f commit 5545d64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,4 +307,7 @@ endif()
307307
if (ON_INFER)
308308
message(STATUS "On inference mode, will take place some specific optimization.")
309309
add_definitions(-DPADDLE_ON_INFERENCE)
310+
else()
311+
#TODO(luotao), combine this warning with `make inference_lib_dist` command.
312+
message(WARNING "On inference mode, will take place some specific optimization. Only used in make inference_lib_dist.")
310313
endif()

0 commit comments

Comments
 (0)