Skip to content

Commit

Permalink
Revert "fetch eigen"
Browse files Browse the repository at this point in the history
This reverts commit a0aab302926c354b7023ae776e9d11f89ec99161.
  • Loading branch information
mayeut committed Apr 1, 2023
1 parent 5b841b3 commit 183c477
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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,10 +46,12 @@
+ FIND_PACKAGE_ARGS REQUIRED CONFIG NAMES Eigen3
)
endif()
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}")
+ # 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 183c477

Please sign in to comment.