find_library(CUDA_NPP_LIBRARIES NAMES npp${NPP_SUFFIX} libnpp${NPP_SUFFIX} DOC "NPP library")\r
mark_as_advanced(CUDA_NPP_LIBRARIES)
-if(NOT EXISTS ${CUDA_NPP_LIBRARIES} OR NOT EXISTS ${CUDA_NPP_INCLUDES}/npp.h)
+if(NOT EXISTS ${CUDA_NPP_LIBRARIES} OR NOT EXISTS ${CUDA_NPP_INCLUDES}/npp.h)\r
+ set(CUDA_FOUND FALSE)\r
+ unset(CUDA_NPP_INCLUDES CACHE)\r
+ unset(CUDA_NPP_LIBRARIES CACHE)\r
+
if(NPP_FIND_REQUIRED)\r
message(FATAL_ERROR "NPP headers/libraries are not found. Specify CUDA_NPP_LIBRARY_ROOT_DIR.")\r
elseif(NOT CUDA_FIND_QUIETLY)\r
message("NPP headers/libraries are not found or CUDA_NPP_LIBRARY_ROOT_DIR not specified.")\r
endif() \r
- \r
- set(CUDA_FOUND FALSE)\r
- unset(CUDA_NPP_INCLUDES CACHE)\r
- unset(CUDA_NPP_LIBRARIES CACHE)\r
else()\r
\r
if(APPLE)\r