FindNPP.cmake: added support of NPP 3.2
authorAnatoly Baksheev <no@email>
Fri, 24 Sep 2010 15:34:36 +0000 (15:34 +0000)
committerAnatoly Baksheev <no@email>
Fri, 24 Sep 2010 15:34:36 +0000 (15:34 +0000)
modules/gpu/FindNPP.cmake

index 7378589..51d4731 100644 (file)
@@ -68,10 +68,11 @@ mark_as_advanced(CUDA_NPP_INCLUDES)
 \r
 # Find NPP library\r
 find_library(CUDA_NPP_LIBRARIES\r
-       NAMES npp${NPP_SUFFIX} libnpp${NPP_SUFFIX}\r
-       PATHS "${CUDA_NPP_LIBRARY_ROOT_DIR}/common/lib"    \r
+       NAMES "npp" "npp${NPP_SUFFIX}" "libnpp${NPP_SUFFIX}"\r
+       PATHS "${CUDA_NPP_LIBRARY_ROOT_DIR}"    \r
+       PATH_SUFFIXES "common/lib" "common/npp/lib"\r
        DOC "NPP library"       \r
-       )
+       )       
 \r
 # Search default search paths, after we search our own set of paths.\r
 find_library(CUDA_NPP_LIBRARIES NAMES npp${NPP_SUFFIX} libnpp${NPP_SUFFIX} DOC "NPP library")\r