From b695f024aa922173fd770db98f8caa6496198010 Mon Sep 17 00:00:00 2001 From: Wilber Date: Tue, 4 Jul 2023 18:21:16 +0800 Subject: [PATCH] [IR] Fix inference glog error. (#54992) * Fix inference glog error. * fix compiler error in windows. * update --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 150211e79e7..c4ecc664cab 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -696,6 +696,9 @@ if(ON_INFER) STATUS "On inference mode, will take place some specific optimization.") include(inference_lib) add_definitions(-DPADDLE_ON_INFERENCE) + set(WITH_SHARED_IR + OFF + CACHE STRING "Only paddle_inference.so is allowed in inference." FORCE) else() #TODO(luotao), combine this warning with `make inference_lib_dist` command. message( -- GitLab