message: Fixed cmake handling cuda toolkit dir and compilers.
diff: @@ -45,7 +45,7 @@ option( USER_PATHS_IFF "Use the compiler and library paths etc. for the IFF Cl
  ### the CUDA_TOOLKIT_ROOT_DIR variable.
  if( SPIRIT_USE_CUDA )
  ### Set cuda toolkit path
  - # set( CUDA_TOOLKIT_ROOT_DIR /usr/local/cuda )
  + set( CUDA_TOOLKIT_ROOT_DIR /usr/local/cuda )
  # if( (NOT CUDA_TOOLKIT_ROOT_DIR) )
  # if ( APPLE OR UNIX )
  # set( CUDA_TOOLKIT_ROOT_DIR /opt/cuda )
  @@ -56,18 +56,23 @@ if( SPIRIT_USE_CUDA )
  # endif()
  ### Set compilers
  if( APPLE OR UNIX )
  - if( ${CUDA_TOOLKIT_ROOT_DIR} )
  + if( DEFINED CUDA_TOOLKIT_ROOT_DIR )
  + MESSAGE( STATUS ">> CUDA toolkit root dir: ${CUDA_TOOLKIT_ROOT_DIR}" )
  if( NOT DEFINED CMAKE_C_COMPILER )
  set( CMAKE_C_COMPILER ${CUDA_TOOLKIT_ROOT_DIR}/bin/gcc )
  + MESSAGE( STATUS ">> Set C compiler accordingly" )
  endif( )
  if( NOT DEFINED CMAKE_CXX_COMPILER )
  set( CMAKE_CXX_COMPILER ${CUDA_TOOLKIT_ROOT_DIR}/bin/g++ )
  + MESSAGE( STATUS ">> Set CXX compiler accordingly" )
  + endif( )
  + else( )
  + MESSAGE( STATUS ">> No CUDA toolkit root dir specified" )
  endif( )
  elseif( WIN32 )
  # MESSAGE( STATUS ">> We are on Windows... CUDA untested" )
  endif( )
  endif( )
  -endif( )
  #############################################
  