Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 848c83d

Browse filesBrowse files
committed
Add FORCE_CMAKE option
1 parent 9dddb3a commit 848c83d
Copy full SHA for 848c83d

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎CMakeLists.txt

Copy file name to clipboardExpand all lines: CMakeLists.txt
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ cmake_minimum_required(VERSION 3.4...3.22)
22

33
project(llama_cpp)
44

5-
if (UNIX)
5+
option(FORCE_CMAKE "Force CMake build of Python bindings" OFF)
6+
7+
set(FORCE_CMAKE $ENV{FORCE_CMAKE})
8+
9+
if (UNIX AND NOT FORCE_CMAKE)
610
add_custom_command(
711
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/vendor/llama.cpp/libllama.so
812
COMMAND make libllama.so

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.