From 317d69cbf1ce42709046f4c1097f49764a29998e Mon Sep 17 00:00:00 2001
From: barracuda156 <vital.had@gmail.com>
Date: Mon, 17 Jul 2023 07:15:24 +0800
Subject: [PATCH 1/2] Do not break build when DISABLE_CPU_OPTIMIZATION=ON is
 set

---
 CMakeLists.txt | 7 -------
 1 file changed, 7 deletions(-)

diff --git CMakeLists.txt CMakeLists.txt
index 1600871..ecbd37e 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -136,13 +136,6 @@ if(NOT DISABLE_CPU_OPTIMIZATION)
         set(SSE_PRESENT TRUE)
         set(NEON_PRESENT TRUE)
     endif()
-else()
-    # Presume all optimizations are available as the user is likely setting them themselves
-    # (e.g. cross-compiling)
-    set(AVX2_PRESENT TRUE)
-    set(AVX_PRESENT TRUE)
-    set(SSE_PRESENT TRUE)
-    set(NEON_PRESENT TRUE)
 endif()
 
 set(LPCNET_C_PROC_FLAGS "")
