|
@@ -1,4 +1,4 @@
|
|
|
-cmake_minimum_required(VERSION 3.13) # for add_link_options
|
|
|
|
|
|
|
+cmake_minimum_required(VERSION 3.14) # for add_link_options and implicit target directories.
|
|
|
project("llama.cpp" C CXX)
|
|
project("llama.cpp" C CXX)
|
|
|
|
|
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
@@ -76,6 +76,10 @@ if (NOT MSVC)
|
|
|
option(LLAMA_F16C "llama: enable F16C" ${INS_ENB})
|
|
option(LLAMA_F16C "llama: enable F16C" ${INS_ENB})
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
|
|
|
|
+if (WIN32)
|
|
|
|
|
+ option(LLAMA_WIN_VER "llama: Windows Version" 0x602)
|
|
|
|
|
+endif()
|
|
|
|
|
+
|
|
|
# 3rd party libs
|
|
# 3rd party libs
|
|
|
option(LLAMA_ACCELERATE "llama: enable Accelerate framework" ON)
|
|
option(LLAMA_ACCELERATE "llama: enable Accelerate framework" ON)
|
|
|
option(LLAMA_BLAS "llama: use BLAS" OFF)
|
|
option(LLAMA_BLAS "llama: use BLAS" OFF)
|
|
@@ -686,7 +690,7 @@ endif()
|
|
|
|
|
|
|
|
if (MINGW)
|
|
if (MINGW)
|
|
|
# Target Windows 8 for PrefetchVirtualMemory
|
|
# Target Windows 8 for PrefetchVirtualMemory
|
|
|
- add_compile_definitions(_WIN32_WINNT=0x602)
|
|
|
|
|
|
|
+ add_compile_definitions(_WIN32_WINNT=${LLAMA_WIN_VER})
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
|
|
#
|
|
#
|