From c00d427d5273d428ef48c43825712e15071dd311 Mon Sep 17 00:00:00 2001 From: Tao Luo Date: Fri, 27 Mar 2020 10:23:06 +0800 Subject: [PATCH] simplify the cmake log of ir/CMakeLists.txt (#23262) test=develop --- paddle/fluid/framework/ir/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/framework/ir/CMakeLists.txt b/paddle/fluid/framework/ir/CMakeLists.txt index f90715965ea..c81be300027 100644 --- a/paddle/fluid/framework/ir/CMakeLists.txt +++ b/paddle/fluid/framework/ir/CMakeLists.txt @@ -27,7 +27,9 @@ function(pass_library TARGET DEST) # add more DEST here, such as train, dist and collect USE_PASS into a file automatically. if (${DEST} STREQUAL "base" OR ${DEST} STREQUAL "inference") - message(STATUS "add pass ${TARGET} ${DEST}") + if(NOT CMAKE_BUILD_TYPE STREQUAL "Release") + message(STATUS "add pass ${TARGET} ${DEST}") + endif() file(APPEND ${pass_file} "USE_PASS(${TARGET});\n") set(INFER_IR_PASSES ${INFER_IR_PASSES} ${TARGET} CACHE INTERNAL "") endif() -- GitLab