Skip to content

Commit

Permalink
[Torch] fix external project linkage
Browse files Browse the repository at this point in the history
  • Loading branch information
MatPont committed Jul 17, 2024
1 parent 8d6b274 commit 1cf7f15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions core/base/TTKBaseConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ if (@TTK_ENABLE_QHULL@ AND @Qhull_FOUND@)
find_dependency(Qhull REQUIRED)
endif()

if (@TTK_ENABLE_TORCH@ AND TORCH_FOUND)
find_dependency(Torch REQUIRED)
if (@TTK_ENABLE_TORCH@ AND @TORCH_FOUND@)
set(Torch_DIR "@Torch_DIR@" CACHE PATH "Use TTK Torch dir" FORCE)
find_dependency(Torch REQUIRED @Torch_DIR@)
endif()

if (@TTK_ENABLE_ZFP@ AND NOT @TTK_ENABLE_SHARED_BASE_LIBRARIES@)
Expand Down
2 changes: 1 addition & 1 deletion examples/c++/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.21)
# name of the project
project(ttkExample-c++)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 17)

set(CMAKE_BUILD_TYPE "Release")

Expand Down

0 comments on commit 1cf7f15

Please sign in to comment.