Skip to content

Commit b815c6c

Browse files
committed
Update CMakeLists.txt
1 parent 38a4a04 commit b815c6c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
cmake_minimum_required(VERSION 3.16)
22
project(BasicallyLinux C ASM_NASM)
33

4+
# NASM flags for 32-bit ELF (Must be set before enable_language or forced)
5+
set(CMAKE_ASM_NASM_FLAGS "-f elf32" CACHE STRING "NASM flags" FORCE)
6+
47
# Enable NASM support
58
enable_language(ASM_NASM)
69

@@ -30,9 +33,6 @@ include_directories(include)
3033
file(GLOB_RECURSE ASM_SOURCES "src/*.asm")
3134
file(GLOB_RECURSE C_SOURCES "src/*.c")
3235

33-
# NASM flags for 32-bit ELF
34-
set(CMAKE_ASM_NASM_FLAGS "-f elf32")
35-
3636
# Exclude specific files if needed
3737
list(FILTER C_SOURCES EXCLUDE REGEX "src/drivers/vga.c")
3838

0 commit comments

Comments
 (0)