Skip to content

Commit

Permalink
Add FORCE_CMAKE option
Browse files Browse the repository at this point in the history
  • Loading branch information
abetlen committed Apr 25, 2023
1 parent 9dddb3a commit 848c83d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ cmake_minimum_required(VERSION 3.4...3.22)

project(llama_cpp)

if (UNIX)
option(FORCE_CMAKE "Force CMake build of Python bindings" OFF)

set(FORCE_CMAKE $ENV{FORCE_CMAKE})

if (UNIX AND NOT FORCE_CMAKE)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/vendor/llama.cpp/libllama.so
COMMAND make libllama.so
Expand Down

0 comments on commit 848c83d

Please sign in to comment.