Skip to content

Commit ff23cb0

Browse files
committed
Add fPIC to CMakeLists
1 parent 4b2a140 commit ff23cb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ project(llamacpp)
66
set(CMAKE_CXX_STANDARD 11)
77
set(CMAKE_CXX_STANDARD_REQUIRED ON)
88
set(CMAKE_CXX_EXTENSIONS OFF)
9+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
910

1011
set(GGML_USE_ACCELERATE 1)
1112
find_package(pybind11 REQUIRED)

0 commit comments

Comments
 (0)