CMake: Move option(XZ_ASM_I386) downwards a few lines

This commit is contained in:
Lasse Collin 2024-06-20 23:00:59 +03:00
parent e5c2b07b48
commit dbc14f213e
1 changed files with 8 additions and 8 deletions

View File

@ -175,14 +175,6 @@ endif()
# to C99 if C11 isn't supported.
set(CMAKE_C_STANDARD 11)
# Support 32-bit x86 assembly files.
if(NOT MSVC)
option(XZ_ASM_I386 "Enable 32-bit x86 assembly code" OFF)
if(XZ_ASM_I386)
enable_language(ASM)
endif()
endif()
# On Apple OSes, don't build executables as bundles:
set(CMAKE_MACOSX_BUNDLE OFF)
@ -249,6 +241,14 @@ add_compile_definitions(
$<$<CONFIG:>:NDEBUG>
)
# Support 32-bit x86 assembly files.
if(NOT MSVC)
option(XZ_ASM_I386 "Enable 32-bit x86 assembly code" OFF)
if(XZ_ASM_I386)
enable_language(ASM)
endif()
endif()
######################
# System definitions #