--- CMakeLists.txt.orig 2024-05-18 16:15:18 UTC +++ CMakeLists.txt @@ -418,14 +418,14 @@ endif() add_definitions(-D_CRT_NONSTDC_NO_WARNINGS) endif() -if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "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 MATCHES "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")