Browse Source

add cygwin CUDA path

Samuel Thibault 14 years ago
parent
commit
c9c1b05d0f
1 changed files with 2 additions and 4 deletions
  1. 2 4
      configure.ac

+ 2 - 4
configure.ac

@@ -185,10 +185,8 @@ if test x$enable_cuda = xyes -o x$enable_cuda = xmaybe; then
 			enable_cuda=yes
 		], cuda_dir=/usr/local/cuda/)
 
-	if ! test -d "$cuda_dir" && test -d "/c/cuda" ;
-        then
-                cuda_dir=/c/cuda
-        fi
+	! test -d "$cuda_dir" && test -d "/c/cuda" && cuda_dir=/c/cuda
+	! test -d "$cuda_dir" && test -d "/cygdrive/c/cuda" && cuda_dir=/cygdrive/c/cuda
 
 	if test -d "$cuda_dir/include/"; then
 		CPPFLAGS="${CPPFLAGS} -I$cuda_dir/include/ "