diff --git a/.gitignore b/.gitignore index fda328a..32fc287 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ build/ # model *.bin +*.tiktoken diff --git a/CMakeLists.txt b/CMakeLists.txt index 407a88b..7c16a2c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,7 @@ cmake_minimum_required(VERSION 3.12) project(qwen.cpp VERSION 0.0.1 LANGUAGES CXX) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib CACHE STRING "") set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib CACHE STRING "") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin CACHE STRING "")