Skip to content

Commit

Permalink
Fixed: Building failed when compiling rust libs under release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace-Radom committed Apr 27, 2023
1 parent 3a71355 commit 98c22ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openai_api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ project(openai_api VERSION 1.0)
# openai_api subproject: requesting information from the openai api using the curl library

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CARGO_ARG "build")
set(CARGO_ARG build)
set(TARGET_DIR "debug")
else()
set(CARGO_ARG "build --release")
set(CARGO_ARG build --release)
set(TARGET_DIR "release")
endif()
set(rstiktokens_a ${CMAKE_SOURCE_DIR}/src/openai_api/rstiktokens/target/${TARGET_DIR}/libtiktokens.a)
Expand Down

0 comments on commit 98c22ea

Please sign in to comment.