cmake: Factor out CPU architecture detection (#13883)
* cmake: Define function for querying architecture The tests and results match exactly those of ggml/src/CMakeLists.txt * Switch arch detection over to new function
This commit is contained in:
parent
dd8ba93416
commit
21fcc21ad5
3 changed files with 34 additions and 17 deletions
|
@ -109,6 +109,8 @@ if (MSVC)
|
|||
else ()
|
||||
set(CMAKE_GENERATOR_PLATFORM_LWR "")
|
||||
endif ()
|
||||
ggml_get_system_arch()
|
||||
message(STATUS "GGML_SYSTEM_ARCH: ${GGML_SYSTEM_ARCH}")
|
||||
|
||||
if (NOT MSVC)
|
||||
if (GGML_STATIC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue