[Build] Replace message() in caffe2/CMakeLists.txt with message in cmake/Summary.cmake (#84814)

Summary: In [PR 84755](https://github.com/pytorch/pytorch/pull/84755), @cccclai noticed and mentioned the presence of `message(STATUS...)` logging in caffe2/CMakeLists.txt and suggested moving it to the file cmake/Summary.cmake. This PR addresses that comment/suggestion.

Test Plan: Ran the build as `USE_NUMPY=0 USE_DISTRIBUTED=0 USE_CUDA=0 TRACING_BASED=1 python setup.py develop`

and saw the follwing being printed:

```
--   BUILD_MOBILE_AUTOGRAD : OFF
--   BUILD_LITE_INTERPRETER: OFF
--   INTERN_BUILD_MOBILE   :
--   TRACING_BASED         : 1
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/84814
Approved by: https://github.com/cccclai
This commit is contained in:
Dhruv Matani 2022-09-10 20:19:53 -07:00 committed by PyTorch MergeBot
parent d6b2f5c643
commit a06f2edab6
2 changed files with 1 additions and 4 deletions

View File

@ -1035,10 +1035,6 @@ if(TRACING_BASED AND NOT BUILD_LITE_INTERPRETER AND NOT INTERN_BUILD_MOBILE)
string(APPEND CMAKE_CXX_FLAGS " -DENABLE_RECORD_KERNEL_FUNCTION_DTYPE")
endif()
message(STATUS "Tracing Based Flag: ${TRACING_BASED}")
message(STATUS "Build Lite Interpreter Flag: ${BUILD_LITE_INTERPRETER}")
message(STATUS "Intern Build Mobile Flag: ${INTERN_BUILD_MOBILE}")
# Codegen selected_mobile_ops.h for template selective build
if(BUILD_LITE_INTERPRETER AND SELECTED_OP_LIST)
message("running gen_selected_mobile_ops_header for: '${SELECTED_OP_LIST}'")

View File

@ -58,6 +58,7 @@ function(caffe2_print_configuration_summary)
message(STATUS " CROSS_COMPILING_MACOSX : ${CROSS_COMPILING_MACOSX}")
endif()
message(STATUS " INTERN_BUILD_MOBILE : ${INTERN_BUILD_MOBILE}")
message(STATUS " TRACING_BASED : ${TRACING_BASED}")
message(STATUS " USE_BLAS : ${USE_BLAS}")
if(${USE_BLAS})