[libcxx] r283721 - Cleanup CMake status output

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 9 23:31:00 PDT 2016


Author: ericwf
Date: Mon Oct 10 01:31:00 2016
New Revision: 283721

URL: http://llvm.org/viewvc/llvm-project?rev=283721&view=rev
Log:
Cleanup CMake status output

Modified:
    libcxx/trunk/benchmarks/CMakeLists.txt
    libcxx/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake

Modified: libcxx/trunk/benchmarks/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/benchmarks/CMakeLists.txt?rev=283721&r1=283720&r2=283721&view=diff
==============================================================================
--- libcxx/trunk/benchmarks/CMakeLists.txt (original)
+++ libcxx/trunk/benchmarks/CMakeLists.txt Mon Oct 10 01:31:00 2016
@@ -120,7 +120,11 @@ endmacro()
 file(GLOB BENCHMARK_TESTS "*.bench.cpp")
 foreach(test_path ${BENCHMARK_TESTS})
   get_filename_component(test_file "${test_path}" NAME)
-  message(STATUS "Adding Benchmark: ${test_file}")
   string(REPLACE ".bench.cpp" "" test_name "${test_file}")
+  if (NOT DEFINED ${test_name}_REPORTED)
+    message(STATUS "Adding Benchmark: ${test_file}")
+    # Only report the adding of the benchmark once.
+    set(${test_name}_REPORTED ON CACHE INTERNAL "")
+  endif()
   add_benchmark_test(${test_name} ${test_file})
 endforeach()

Modified: libcxx/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake?rev=283721&r1=283720&r2=283721&view=diff
==============================================================================
--- libcxx/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake (original)
+++ libcxx/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake Mon Oct 10 01:31:00 2016
@@ -105,10 +105,7 @@ if (LIBCXX_USING_INSTALLED_LLVM OR LIBCX
 
   # Required doc configuration
   if (LLVM_ENABLE_SPHINX)
-    message(STATUS "Sphinx enabled.")
     find_package(Sphinx REQUIRED)
-  else()
-    message(STATUS "Sphinx disabled.")
   endif()
 
   # FIXME - This is cribbed from HandleLLVMOptions.cmake.




More information about the cfe-commits mailing list