aboutsummaryrefslogblamecommitdiff
path: root/graphics/jpeg-turbo/files/patch-CMakeLists.txt
blob: 339c381abded04687aa3fddcc5002d8b69c34b1f (plain) (tree)
























                                                                     
--- CMakeLists.txt.orig	2023-02-09 07:01:27 UTC
+++ CMakeLists.txt
@@ -393,14 +393,14 @@ if(MSVC)
   add_definitions(-D_CRT_NONSTDC_NO_WARNINGS)
 endif()
 
-if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
-  # Use the maximum optimization level for release builds
-  foreach(var CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELWITHDEBINFO)
-    if(${var} MATCHES "-O2")
-      string(REGEX REPLACE "-O2" "-O3" ${var} "${${var}}")
-    endif()
-  endforeach()
-endif()
+#if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
+#  # Use the maximum optimization level for release builds
+#  foreach(var CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELWITHDEBINFO)
+#    if(${var} MATCHES "-O2")
+#      string(REGEX REPLACE "-O2" "-O3" ${var} "${${var}}")
+#    endif()
+#  endforeach()
+#endif()
 
 if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
   if(CMAKE_C_COMPILER_ID MATCHES "SunPro")