Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
782f25a5
Commit
782f25a5
authored
Sep 24, 2010
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
search in env var CUDA_NPP_ROOT
parent
99f90ffc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
FindNPP.cmake
modules/gpu/FindNPP.cmake
+5
-5
No files found.
modules/gpu/FindNPP.cmake
View file @
782f25a5
...
...
@@ -55,12 +55,13 @@ else(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
endif
()
endif
(
${
CMAKE_SIZEOF_VOID_P
}
EQUAL 4
)
if
(
NOT CUDA_NPP_LIBRARY_ROOT_DIR
)
find_path
(
CUDA_NPP_LIBRARY_ROOT_DIR common/npp/include/npp.h DOC
"NPP root directory."
NO_DEFAULT_PATH
)
if
(
NOT CUDA_NPP_LIBRARY_ROOT_DIR
)
set
(
CUDA_NPP_LIBRARY_ROOT_DIR $ENV{CUDA_NPP_ROOT} CACHE PATH
"NPP root directory."
FORCE
)
find_path
(
CUDA_NPP_LIBRARY_ROOT_DIR
"common/npp/include/npp.h"
PATHS ENV CUDA_NPP_ROOT DOC
"NPP root directory."
)
endif
(
NOT CUDA_NPP_LIBRARY_ROOT_DIR
)
# Search includes in our own paths.
find_path
(
CUDA_NPP_INCLUDES npp.h PATHS
"
${
CUDA_NPP_LIBRARY_ROOT_DIR
}
/common/npp/include"
NO_DEFAULT_PATH
)
find_path
(
CUDA_NPP_INCLUDES npp.h PATHS
"
${
CUDA_NPP_LIBRARY_ROOT_DIR
}
/common/npp/include"
)
# Search default search paths, after we search our own set of paths.
find_path
(
CUDA_NPP_INCLUDES device_functions.h
)
mark_as_advanced
(
CUDA_NPP_INCLUDES
)
...
...
@@ -69,8 +70,7 @@ mark_as_advanced(CUDA_NPP_INCLUDES)
find_library
(
CUDA_NPP_LIBRARIES
NAMES npp
${
NPP_SUFFIX
}
libnpp
${
NPP_SUFFIX
}
PATHS
"
${
CUDA_NPP_LIBRARY_ROOT_DIR
}
/common/lib"
DOC
"NPP library"
NO_DEFAULT_PATH
DOC
"NPP library"
)
# Search default search paths, after we search our own set of paths.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment