Skip to content

Commit

Permalink
Fix usages of $ENV (#1232)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel authored Jan 14, 2025
1 parent 6feaf60 commit f64f115
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lantern/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set(TORCH_VERSION "2.5.1")

if (NOT DEFINED TORCH_PATH)
if (DEFINED ENV{TORCH_PATH})
set(TORCH_PATH "ENV{TORCH_PATH}")
set(TORCH_PATH "$ENV{TORCH_PATH}")
else()
set(TORCH_PATH "${CMAKE_CURRENT_BINARY_DIR}/libtorch/")
endif()
Expand Down Expand Up @@ -37,7 +37,7 @@ if (NOT EXISTS "${TORCH_PATH}")
message(STATUS "TORCH_PATH doesn't exists yet. Downloading a pre-built binary.")

if(DEFINED ENV{TORCH_URL})
set(TORCH_URL "ENV{TORCH_URL}")
set(TORCH_URL "$ENV{TORCH_URL}")
endif()

# find an appropriate torch url
Expand Down

0 comments on commit f64f115

Please sign in to comment.