Skip to content

Commit 1469094

Browse files
[update] Update 'CMakeLists.txt': give path to libtorch as an environment variable
1 parent 034a562 commit 1469094

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ project(pytorch_ros)
44
add_compile_options(-std=c++14)
55

66
# Locate the cmake file of torchlib
7-
set(Torch_DIR "/opt/conda/envs/ros_env/lib/python3.8/site-packages/torch/share/cmake/Torch/")
8-
#set(Torch_DIR "$ENV{TORCH_ROOT}/torch/share/cmake/Torch/")
7+
# set(Torch_DIR "/usr/local/lib/python3.8/dist-packages/torch/share/cmake/Torch/")
8+
set(Torch_DIR "$ENV{TORCH_PATH}/torch/share/cmake/Torch/")
99

1010
## Find catkin macros and libraries
1111
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)

0 commit comments

Comments
 (0)