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
9ff44756
Commit
9ff44756
authored
6 years ago
by
Sacha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support WITH_CUDA with clang compiler.
parent
1c73e66e
master
4.3.0
4.2.0
4.1.2
4.1.2-openvino
4.1.1
4.1.1-openvino
4.1.0
4.1.0-openvino
4.0.1
4.0.1-openvino
4.0.0
4.0.0-rc
4.0.0-openvino
4.0.0-beta
4.0.0-alpha
3.4.10
3.4.9
3.4.8
3.4.7
3.4.6
3.4.5
3.4.4
3.4.3
3.4.3-openvino
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
OpenCVDetectCUDA.cmake
cmake/OpenCVDetectCUDA.cmake
+8
-1
No files found.
cmake/OpenCVDetectCUDA.cmake
View file @
9ff44756
...
...
@@ -3,7 +3,7 @@ if(WIN32 AND NOT MSVC)
return
()
endif
()
if
(
NOT
APPLE
AND CV_CLANG
)
if
(
NOT
UNIX
AND CV_CLANG
)
message
(
STATUS
"CUDA compilation is disabled (due to Clang unsupported on your platform)."
)
return
()
endif
()
...
...
@@ -188,6 +188,13 @@ if(CUDA_FOUND)
foreach
(
var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG
)
set
(
${
var
}
_backup_in_cuda_compile_
"
${${
var
}}
"
)
if
(
CV_CLANG
)
# we remove -Winconsistent-missing-override and -Qunused-arguments
# just in case we are compiling CUDA with gcc but OpenCV with clang
string
(
REPLACE
"-Winconsistent-missing-override"
""
${
var
}
"
${${
var
}}
"
)
string
(
REPLACE
"-Qunused-arguments"
""
${
var
}
"
${${
var
}}
"
)
endif
()
# we remove /EHa as it generates warnings under windows
string
(
REPLACE
"/EHa"
""
${
var
}
"
${${
var
}}
"
)
...
...
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