Qualify messages issued by CMake when CUDA is unavailable

This commit is contained in:
T.E.A de Souza 2015-10-19 18:19:38 +08:00
Родитель 16de3407a5
Коммит a7d84f3c7e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

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