From 721b82f257afae0170a60ba355efceef6cff2355 Mon Sep 17 00:00:00 2001 From: Rob Hughes Date: Fri, 15 Nov 2019 09:04:17 +0000 Subject: [PATCH] Print CMake messages on stdout rather than stderr The default version of message("...") print to stderr, which is inappropriate for informational messages such as the ones we are printing in these cases. Using message(STATUS "...") makes these messages appear on stdout instead which is more appropriate. Change-Id: I02f41e6b4948e6938566f06d7164444bd5b8199e Signed-off-by: Robert Hughes --- CMakeLists.txt | 6 +++--- cmake/GlobalConfig.cmake | 2 +- src/backends/backends.cmake | 4 ++-- src/backends/cl/backend.cmake | 2 +- src/backends/neon/backend.cmake | 2 +- src/backends/reference/backend.cmake | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 89f0e5af5..fe3240d0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -518,7 +518,7 @@ endif() # object libs armnn to include in the build include(src/backends/backends.cmake) foreach(lib ${armnnLibraries}) - message("Adding object library dependency to armnn: ${lib}") + message(STATUS "Adding object library dependency to armnn: ${lib}") list(APPEND armnn_sources $) endforeach() @@ -826,7 +826,7 @@ if(BUILD_UNIT_TESTS) endif() foreach(lib ${armnnUnitTestLibraries}) - message("Adding object library dependency to UnitTests: ${lib}") + message(STATUS "Adding object library dependency to UnitTests: ${lib}") list(APPEND unittest_sources $) endforeach() @@ -838,7 +838,7 @@ if(BUILD_UNIT_TESTS) if(VALGRIND_FOUND) if(HEAP_PROFILING OR LEAK_CHECKING) - message("Valgrind is disabled for heap profiling and leak checking builds.") + message(STATUS "Valgrind is disabled for heap profiling and leak checking builds.") else() # Valgrind works with gperftools version number <= 2.4 target_compile_definitions(UnitTests PRIVATE "WITH_VALGRIND=1") diff --git a/cmake/GlobalConfig.cmake b/cmake/GlobalConfig.cmake index af579488e..191cd9d8a 100644 --- a/cmake/GlobalConfig.cmake +++ b/cmake/GlobalConfig.cmake @@ -328,7 +328,7 @@ if(HEAP_PROFILING OR LEAK_CHECKING) add_definitions("-DARMNN_LEAK_CHECKING_ENABLED=1") endif() else() - message("Heap profiling and leak checking are disabled for referencetests") + message(STATUS "Heap profiling and leak checking are disabled for referencetests") endif() else() # Valgrind only works with gperftools version number <= 2.4 diff --git a/src/backends/backends.cmake b/src/backends/backends.cmake index 473de4803..aca3b63ca 100644 --- a/src/backends/backends.cmake +++ b/src/backends/backends.cmake @@ -10,13 +10,13 @@ file(GLOB backendIncludes ${PROJECT_SOURCE_DIR}/src/backends/*/backend.cmake) # prefer to include common code first foreach(includeFile ${commonIncludes}) - message("Including backend common library into the build: ${includeFile}") + message(STATUS "Including backend common library into the build: ${includeFile}") include(${includeFile}) endforeach() # now backends can depend on common code included first foreach(includeFile ${backendIncludes}) - message("Including backend into the build: ${includeFile}") + message(STATUS "Including backend into the build: ${includeFile}") include(${includeFile}) endforeach() diff --git a/src/backends/cl/backend.cmake b/src/backends/cl/backend.cmake index eb6214733..9484b9476 100644 --- a/src/backends/cl/backend.cmake +++ b/src/backends/cl/backend.cmake @@ -10,5 +10,5 @@ if(ARMCOMPUTECL) list(APPEND armnnLibraries armnnClBackendWorkloads) list(APPEND armnnUnitTestLibraries armnnClBackendUnitTests) else() - message("CL backend is disabled") + message(STATUS "CL backend is disabled") endif() diff --git a/src/backends/neon/backend.cmake b/src/backends/neon/backend.cmake index c8ff4880b..801ba7c1f 100644 --- a/src/backends/neon/backend.cmake +++ b/src/backends/neon/backend.cmake @@ -10,5 +10,5 @@ if(ARMCOMPUTENEON) list(APPEND armnnLibraries armnnNeonBackendWorkloads) list(APPEND armnnUnitTestLibraries armnnNeonBackendUnitTests) else() - message("NEON backend is disabled") + message(STATUS "NEON backend is disabled") endif() diff --git a/src/backends/reference/backend.cmake b/src/backends/reference/backend.cmake index 01a4ee132..e8654d874 100644 --- a/src/backends/reference/backend.cmake +++ b/src/backends/reference/backend.cmake @@ -10,5 +10,5 @@ if(ARMNNREF) list(APPEND armnnLibraries armnnRefBackendWorkloads) list(APPEND armnnUnitTestLibraries armnnRefBackendUnitTests) else() - message("Reference backend is disabled") + message(STATUS "Reference backend is disabled") endif() -- 2.34.1