Commit d635a7ee authored by Davis King's avatar Davis King

Improved cmake warning messages about cuDNN

parent 73156146
...@@ -507,11 +507,12 @@ if (NOT TARGET dlib) ...@@ -507,11 +507,12 @@ if (NOT TARGET dlib)
else() else()
set(DLIB_USE_CUDA OFF CACHE STRING ${DLIB_USE_BLAS_STR} FORCE ) set(DLIB_USE_CUDA OFF CACHE STRING ${DLIB_USE_BLAS_STR} FORCE )
toggle_preprocessor_switch(DLIB_USE_CUDA) toggle_preprocessor_switch(DLIB_USE_CUDA)
if (NOT cudnn OR NOT cudnn_include OR NOT cudnn_test_compile_worked) if (COMPILER_CAN_DO_CPP_11)
message(STATUS "*** cuDNN V5.0 OR GREATER NOT FOUND. DLIB WILL NOT USE CUDA. ***") if (NOT cudnn OR NOT cudnn_include OR NOT cudnn_test_compile_worked)
message(STATUS "*** If you have cuDNN then set CMAKE_PREFIX_PATH to include cuDNN's folder.") message(STATUS "*** cuDNN V5.0 OR GREATER NOT FOUND. DLIB WILL NOT USE CUDA. ***")
endif() message(STATUS "*** If you have cuDNN then set CMAKE_PREFIX_PATH to include cuDNN's folder.")
if (NOT COMPILER_CAN_DO_CPP_11) endif()
else ()
message(STATUS "*** Dlib CUDA support requires C++11 but your compiler doesn't support it. ***") message(STATUS "*** Dlib CUDA support requires C++11 but your compiler doesn't support it. ***")
endif() endif()
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment