Do not enable CUDA under mingw.

This commit is contained in:
castano 2010-06-10 02:27:51 +00:00
parent f17cc79141
commit a254f86b6c

View File

@ -49,9 +49,15 @@ ENDIF(CG_FOUND)
# CUDA
FIND_PACKAGE(CUDA)
IF(CUDA_FOUND)
IF(MINGW)
MESSAGE(STATUS "Looking for CUDA - not supported on MinGW")
UNSET(CUDA_FOUND)
ENDIF(MINGW)
IF(CUDA_FOUND)
SET(HAVE_CUDA ${CUDA_FOUND} CACHE BOOL "Set to TRUE if CUDA is found, FALSE otherwise")
MESSAGE(STATUS "Looking for CUDA - found")
ENDIF(CUDA_FOUND)
ELSE(CUDA_FOUND)
MESSAGE(STATUS "Looking for CUDA - not found")
ENDIF(CUDA_FOUND)