Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
seo young Joung
opencv
Commits
4cec9e5f
Commit
4cec9e5f
authored
4 years ago
by
Tomoaki Teshima
Browse files
Options
Download
Email Patches
Plain Diff
fix native detection on Jetson
parent
5ed65460
4.x
5.x
master
next
4.5.5
4.5.4
4.5.3
4.5.3-openvino
4.5.3-openvino-2021.4.2
4.5.3-openvino-2021.4.1
4.5.2
4.5.2-openvino
4.5.1
4.5.1-openvino
4.5.0
4.5.0-openvino
4.4.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/OpenCVDetectCUDA.cmake
+6
-3
cmake/OpenCVDetectCUDA.cmake
with
6 additions
and
3 deletions
+6
-3
cmake/OpenCVDetectCUDA.cmake
View file @
4cec9e5f
...
...
@@ -8,7 +8,10 @@ if(NOT UNIX AND CV_CLANG)
return
()
endif
()
if
(
CUDA_HOST_COMPILER
)
# respect the CUDA_HOST_COMPILER if specified manually
set
(
PREFERRED_CUDA_HOST_COMPILER
"
${
CUDA_HOST_COMPILER
}
"
)
endif
()
if
(((
NOT CMAKE_VERSION VERSION_LESS
"3.9.0"
)
# requires https://gitlab.kitware.com/cmake/cmake/merge_requests/663
OR OPENCV_CUDA_FORCE_EXTERNAL_CMAKE_MODULE
)
AND NOT OPENCV_CUDA_FORCE_BUILTIN_CMAKE_MODULE
)
...
...
@@ -106,8 +109,8 @@ if(CUDA_FOUND)
unset
(
CUDA_ARCH_PTX CACHE
)
endif
()
if
(
CUDA_HOST_COMPILER
)
LIST
(
APPEND CUDA_NVCC_FLAGS -ccbin
${
CUDA_HOST_COMPILER
}
)
if
(
PREFERRED_
CUDA_HOST_COMPILER
)
LIST
(
APPEND CUDA_NVCC_FLAGS -ccbin
"
${
PREFERRED_
CUDA_HOST_COMPILER
}
"
)
else
()
if
(
WIN32 AND CMAKE_LINKER
)
#Workaround for VS cl.exe not being in the env. path
get_filename_component
(
host_compiler_bindir
${
CMAKE_LINKER
}
DIRECTORY
)
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help