From 03adb651bbdd1848d57f41f5bf165e48d27b7a85 Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Sun, 16 Aug 2026 12:31:01 +0400 Subject: [PATCH] CMake final fix --- CMakeLists.txt | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5598d45..1ab213f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -348,8 +348,13 @@ if(DEBUG) -fno-omit-frame-pointer -Og) 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() check_option(OPTIONS_RELEASE -O2 -ffast-math @@ -381,8 +386,12 @@ else() check_option(MEOW_OPT -fno-semantic-interposition) add_compile_options(${MEOW_OPT}) endif() - check_option(ARCH_RELEASE_OPTIONS ${ARCH_RELEASE}) - add_compile_options(${ARCH_RELEASE_OPTIONS}) + if("${ARCH_RELEASE}" STREQUAL "") + message(STATUS "ARCH_RELEASE empty") + else() + check_option(ARCH_RELEASE_OPTIONS ${ARCH_RELEASE}) + add_compile_options(${ARCH_RELEASE_OPTIONS}) + endif() endif() if(ANDROID)