mirror of https://git.tukaani.org/xz.git
CMake: Move option(XZ_ASM_I386) downwards a few lines
This commit is contained in:
parent
e5c2b07b48
commit
dbc14f213e
|
@ -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 #
|
||||
|
|
Loading…
Reference in New Issue