Skip to content

Commit

Permalink
fetch eigen
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Apr 1, 2023
1 parent 982b5e8 commit 5b841b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion recipes/onnxruntime/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def source(self):
def generate(self):
tc = CMakeToolchain(self)
# disable downloading dependencies to ensure conan ones are used
tc.variables["FETCHCONTENT_FULLY_DISCONNECTED"] = True
# tc.variables["FETCHCONTENT_FULLY_DISCONNECTED"] = True

tc.variables["onnxruntime_USE_FULL_PROTOBUF"] = True
tc.variables["onnxruntime_BUILD_UNIT_TESTS"] = False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@
+ FIND_PACKAGE_ARGS REQUIRED CONFIG NAMES Eigen3
)
endif()
- FetchContent_Populate(eigen)
- set(eigen_INCLUDE_DIRS "${eigen_SOURCE_DIR}")
+ # FetchContent_Populate(eigen)
+ # set(eigen_INCLUDE_DIRS "${eigen_SOURCE_DIR}")
+ onnxruntime_fetchcontent_makeavailable(eigen)
+ get_target_property(eigen_INCLUDE_DIRS Eigen3::Eigen INTERFACE_INCLUDE_DIRECTORIES)
FetchContent_Populate(eigen)
set(eigen_INCLUDE_DIRS "${eigen_SOURCE_DIR}")
+ # onnxruntime_fetchcontent_makeavailable(eigen)
+ # get_target_property(eigen_INCLUDE_DIRS Eigen3::Eigen INTERFACE_INCLUDE_DIRECTORIES)
endif()
--- a/cmake/external/onnxruntime_external_deps.cmake
+++ b/cmake/external/onnxruntime_external_deps.cmake
Expand Down

0 comments on commit 5b841b3

Please sign in to comment.