Skip to content

Commit

Permalink
fix: cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
sangjanai committed Jun 3, 2024
1 parent 4a06628 commit 1467775
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ if(UNIX AND NOT APPLE)
endif()

set(THIRD_PARTY_PATH ${CMAKE_CURRENT_SOURCE_DIR}/build_deps/_install)
set(ORT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/build_deps/ort)

if(UNIX AND NOT APPLE)
add_compile_options(-fPIC)
Expand Down Expand Up @@ -51,8 +52,7 @@ endif()
add_library(${TARGET} SHARED
src/onnx_engine.cc
)
# cmake -S .\onnxruntime-genai\ -B .\onnxruntime-genai\build -DUSE_DML=ON -DUSE_CUDA=OFF
# cmake --build .\onnxruntime-genai\build --config Release -j4

find_library(JSONCPP
NAMES jsoncpp
HINTS "${THIRD_PARTY_PATH}/lib"
Expand All @@ -68,6 +68,6 @@ target_link_libraries(${TARGET} PRIVATE ${ONNXRUNTIME_GENAI_LIB} ${JSONCPP} ${TR
target_include_directories(${TARGET} PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/base
${CMAKE_SOURCE_DIR}/onnxruntime-genai/src
${CMAKE_SOURCE_DIR}/onnxruntime-genai/ort/include
${ORT_PATH}/include
${THIRD_PARTY_PATH}/include
)

0 comments on commit 1467775

Please sign in to comment.