diff --git a/CMakeLists.txt b/CMakeLists.txt index 42019395dbbf453409c0d9442b91797852d96b7d..632cf33100c7e206b5d6a19a26ab29b7e85b13ed 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -695,7 +695,7 @@ if(ON_INFER) add_definitions(-DPADDLE_ON_INFERENCE) set(WITH_SHARED_IR OFF - CACHE STRING "Only paddle_inference.so is allowed in inference." FORCE) + CACHE BOOL "Only paddle_inference.so is allowed in inference." FORCE) else() #TODO(luotao), combine this warning with `make inference_lib_dist` command. message(