提交 dffba485 编写于 作者: A Anatoly Baksheev

Added host compiler check before CUDA detection. For not supported compilers CUDA will be disabled.

上级 854902b0
......@@ -3,6 +3,11 @@ if(${CMAKE_VERSION} VERSION_LESS "2.8.3")
return()
endif()
if (NOT MSVC AND NOT CMAKE_COMPILER_IS_GNUCXX OR MINGW)
message(STATUS "CUDA compilation was disabled (due to unsuppoted host compiler).")
return()
endif()
find_package(CUDA 4.1)
if(CUDA_FOUND)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册