We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38a4a04 commit b815c6cCopy full SHA for b815c6c
1 file changed
CMakeLists.txt
@@ -1,6 +1,9 @@
1
cmake_minimum_required(VERSION 3.16)
2
project(BasicallyLinux C ASM_NASM)
3
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
+
7
# Enable NASM support
8
enable_language(ASM_NASM)
9
@@ -30,9 +33,6 @@ include_directories(include)
30
33
file(GLOB_RECURSE ASM_SOURCES "src/*.asm")
31
34
file(GLOB_RECURSE C_SOURCES "src/*.c")
32
35
-# NASM flags for 32-bit ELF
-set(CMAKE_ASM_NASM_FLAGS "-f elf32")
-
36
# Exclude specific files if needed
37
list(FILTER C_SOURCES EXCLUDE REGEX "src/drivers/vga.c")
38
0 commit comments