diff --git a/ggml/CMakeLists.txt b/ggml/CMakeLists.txt index 8454eecde6ee..bec80877ec69 100644 --- a/ggml/CMakeLists.txt +++ b/ggml/CMakeLists.txt @@ -6,7 +6,15 @@ cmake_minimum_required(VERSION 3.14...3.28) # for add_link_options and implicit if (POLICY CMP0194) cmake_policy(SET CMP0194 NEW) endif() -project("ggml" C CXX ASM) + +include(CheckLanguage) + +check_language(ASM) +if (CMAKE_ASM_COMPILER AND NOT MSVC) + enable_language(ASM) +endif() + +project("ggml" C CXX) ### GGML Version set(GGML_VERSION_MAJOR 0)