Cleanup CMake status output
authorEric Fiselier <eric@efcs.ca>
Mon, 10 Oct 2016 06:31:00 +0000 (06:31 +0000)
committerEric Fiselier <eric@efcs.ca>
Mon, 10 Oct 2016 06:31:00 +0000 (06:31 +0000)
llvm-svn: 283721

libcxx/benchmarks/CMakeLists.txt
libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake

index 673d4bb..4160157 100644 (file)
@@ -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()
index 28ff854..cf9fb10 100644 (file)
@@ -105,10 +105,7 @@ if (LIBCXX_USING_INSTALLED_LLVM OR LIBCXX_STANDALONE_BUILD)
 
   # 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.