]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake: Move option(XZ_ASM_I386) downwards a few lines
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 20 Jun 2024 20:00:59 +0000 (23:00 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 23 Jun 2024 20:09:14 +0000 (23:09 +0300)
CMakeLists.txt

index 11928406690fbe3bc4301b1225c161b259e50cef..5756a6e0a083d7e5eb3633e4041f046cdaa3671e 100644 (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 #