Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
3b202420
Unverified
Commit
3b202420
authored
Nov 16, 2021
by
Nikita Shulga
Committed by
GitHub
Nov 16, 2021
Browse files
Build CUDA-11 Windows cmake using C++17 (#4945)
parent
1deb2ec2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
CMakeLists.txt
CMakeLists.txt
+5
-0
No files found.
CMakeLists.txt
View file @
3b202420
...
...
@@ -10,6 +10,11 @@ if(WITH_CUDA)
add_definitions
(
-D__CUDA_NO_HALF_OPERATORS__
)
add_definitions
(
-DWITH_CUDA
)
set
(
CMAKE_CUDA_FLAGS
"
${
CMAKE_CUDA_FLAGS
}
--expt-relaxed-constexpr"
)
# CUDA-11.x can not be compiled using C++14 standard on Windows
string
(
REGEX MATCH
"^[0-9]+"
CUDA_MAJOR
${
CMAKE_CUDA_COMPILER_VERSION
}
)
if
(
${
CUDA_MAJOR
}
GREATER 10 AND MSVC
)
set
(
CMAKE_CXX_STANDARD 17
)
endif
()
endif
()
find_package
(
Python3 COMPONENTS Development
)
...
...
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