Commit 1e35214d authored by Davis King's avatar Davis King

Added warning message about trying to use cuda from a 32 bit visual studio project.

parent d4958e8a
......@@ -458,6 +458,10 @@ if (NOT TARGET dlib)
if (DLIB_USE_CUDA)
find_package(CUDA 7.5)
if (CUDA_FOUND AND MSVC AND NOT CUDA_CUBLAS_LIBRARIES AND "${CMAKE_SIZEOF_VOID_P}" EQUAL "4")
message(WARNING "You have CUDA installed, but we can't use it unless you put visual studio in 64bit mode.")
set(CUDA_FOUND 0)
endif()
if (CUDA_FOUND AND COMPILER_CAN_DO_CPP_11)
......
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