Enable ASM language as required

This commit is contained in:
Tim Angus 2025-08-13 15:03:01 +01:00
parent 17d1be179e
commit dcbbf2c806
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.25)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
include(identity)
project(${PROJECT_NAME} VERSION ${PROJECT_VERSION} LANGUAGES C ASM)
project(${PROJECT_NAME} VERSION ${PROJECT_VERSION} LANGUAGES C)
option(BUILD_SERVER "Build dedicated server" ON)
option(BUILD_CLIENT "Build client" ON)

View File

@ -4,6 +4,8 @@ if(NOT CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_C_COMPILER_ID MATCHES "^
return()
endif()
enable_language(ASM)
set(ASM_SOURCES
${SOURCE_DIR}/asm/snapvector.c
${SOURCE_DIR}/asm/ftola.c