From 5545d64d7d6f2643a37e4ef49736308cb1e682b3 Mon Sep 17 00:00:00 2001 From: Tao Luo Date: Mon, 29 Oct 2018 13:58:19 +0800 Subject: [PATCH] add warning when ON_INFER is OFF test=develop --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67e1c6d7c1e..97af6192cb8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -307,4 +307,7 @@ endif() if (ON_INFER) message(STATUS "On inference mode, will take place some specific optimization.") add_definitions(-DPADDLE_ON_INFERENCE) +else() + #TODO(luotao), combine this warning with `make inference_lib_dist` command. + message(WARNING "On inference mode, will take place some specific optimization. Only used in make inference_lib_dist.") endif() -- GitLab