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
e5d5d809
Unverified
Commit
e5d5d809
authored
Feb 10, 2020
by
bmanga
Committed by
GitHub
Feb 10, 2020
Browse files
[cmake]Propagate WITH_CUDA macro to target consumers (#1855)
parent
e2573a71
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
cmake/TorchVisionConfig.cmake.in
cmake/TorchVisionConfig.cmake.in
+4
-0
No files found.
cmake/TorchVisionConfig.cmake.in
View file @
e5d5d809
...
@@ -33,5 +33,9 @@ find_package(pybind11 REQUIRED)
...
@@ -33,5 +33,9 @@ find_package(pybind11 REQUIRED)
endif()
endif()
target_link_libraries(TorchVision::TorchVision INTERFACE ${TORCH_LIBRARIES} pybind11::pybind11)
target_link_libraries(TorchVision::TorchVision INTERFACE ${TORCH_LIBRARIES} pybind11::pybind11)
if(@WITH_CUDA@)
target_compile_definitions(TorchVision::TorchVision INTERFACE WITH_CUDA)
endif()
endif()
endif()
endif()
endif()
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