CMake final fix

This commit is contained in:
DepressedTWM 2026-08-16 12:31:01 +04:00
parent 4e0769d0ff
commit 03adb651bb

View file

@ -348,8 +348,13 @@ if(DEBUG)
-fno-omit-frame-pointer -fno-omit-frame-pointer
-Og) -Og)
add_compile_options(${OPTIONS_DEBUG}) add_compile_options(${OPTIONS_DEBUG})
check_option(ARCH_DEBUG_OPTIONS ${ARCH_DEBUG})
add_compile_options(${ARCH_DEBUG_OPTIONS}) if("${ARCH_DEBUG}" STREQUAL "")
message(STATUS "ARCH_DEBUG empty")
else()
check_option(ARCH_DEBUG_OPTIONS ${ARCH_DEBUG})
add_compile_options(${ARCH_DEBUG_OPTIONS})
endif()
else() else()
check_option(OPTIONS_RELEASE -O2 check_option(OPTIONS_RELEASE -O2
-ffast-math -ffast-math
@ -381,8 +386,12 @@ else()
check_option(MEOW_OPT -fno-semantic-interposition) check_option(MEOW_OPT -fno-semantic-interposition)
add_compile_options(${MEOW_OPT}) add_compile_options(${MEOW_OPT})
endif() endif()
check_option(ARCH_RELEASE_OPTIONS ${ARCH_RELEASE}) if("${ARCH_RELEASE}" STREQUAL "")
add_compile_options(${ARCH_RELEASE_OPTIONS}) message(STATUS "ARCH_RELEASE empty")
else()
check_option(ARCH_RELEASE_OPTIONS ${ARCH_RELEASE})
add_compile_options(${ARCH_RELEASE_OPTIONS})
endif()
endif() endif()
if(ANDROID) if(ANDROID)