Qualify messages issued by CMake when CUDA is unavailable
authorT.E.A de Souza <tea.desouza@gmail.com>
Mon, 19 Oct 2015 10:19:38 +0000 (18:19 +0800)
committerT.E.A de Souza <tea.desouza@gmail.com>
Mon, 19 Oct 2015 10:19:38 +0000 (18:19 +0800)
cmake/Dependencies.cmake

index d68d7bf..2005b99 100644 (file)
@@ -55,9 +55,9 @@ endif()
 include(cmake/Cuda.cmake)
 if(NOT HAVE_CUDA)
   if(CPU_ONLY)
-    message("-- CUDA is disabled. Building without it...")
+    message(STATUS "-- CUDA is disabled. Building without it...")
   else()
-    message("-- CUDA is not detected by cmake. Building without it...")
+    message(WARNING "-- CUDA is not detected by cmake. Building without it...")
   endif()
 
   # TODO: remove this not cross platform define in future. Use caffe_config.h instead.