Skip to content

Commit

Permalink
Share downloaded ort with ort-extensions (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
baijumeswani authored Sep 24, 2024
1 parent 5af09c6 commit 9ec7c5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ if(MSVC)
add_compile_definitions(_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
endif()

include(cmake/external/onnxruntime_external_deps.cmake)
include(cmake/ortlib.cmake)
include(cmake/external/onnxruntime_external_deps.cmake)
# All Global variables, including GLOB, for the top level CMakeLists.txt should be defined here
include(cmake/global_variables.cmake)
# Checking if CUDA is supported
Expand Down
4 changes: 4 additions & 0 deletions cmake/ortlib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,9 @@ if(USE_DML)
set(D3D12_LIB_DIR ${d3d12lib_SOURCE_DIR}/build/native/bin/${DML_BINARY_PLATFORM})
endif()

# onnxruntime-extensions can use the same onnxruntime headers
set(ONNXRUNTIME_INCLUDE_DIR ${ORT_HEADER_DIR})
set(ONNXRUNTIME_LIB_DIR ${ORT_LIB_DIR})

message(STATUS "ORT_HEADER_DIR: ${ORT_HEADER_DIR}")
message(STATUS "ORT_LIB_DIR: ${ORT_LIB_DIR}")

0 comments on commit 9ec7c5c

Please sign in to comment.