Module: kamailio Branch: 6.0 Commit: 288639366a56235c4a09266d734c9520e78a9f0f URL: https://github.com/kamailio/kamailio/commit/288639366a56235c4a09266d734c9520e78a9f0f
Author: Xenofon Karamanos <[email protected]> Committer: Xenofon Karamanos <[email protected]> Date: 2026-01-12T09:35:38Z cmake: Demote fatal errors to warning for compilers (cherry picked from commit f7da6becd8bdb6446ea7ca4b681b694283f02102) --- Modified: cmake/compiler-specific.cmake --- Diff: https://github.com/kamailio/kamailio/commit/288639366a56235c4a09266d734c9520e78a9f0f.diff Patch: https://github.com/kamailio/kamailio/commit/288639366a56235c4a09266d734c9520e78a9f0f.patch --- diff --git a/cmake/compiler-specific.cmake b/cmake/compiler-specific.cmake index 51679f963da..2b41cd15418 100644 --- a/cmake/compiler-specific.cmake +++ b/cmake/compiler-specific.cmake @@ -149,8 +149,8 @@ elseif(TARGET_ARCH MATCHES "ppc64$") "GCC version ${CMAKE_C_COMPILER_VERSION} is too old for ppc64. Try GCC 3.0 or newer." ) endif() - # else() - # message(FATAL_ERROR "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for ppc64. Try GCC.") + else() + message(WARNING "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for ppc64. Try GCC.") endif() elseif(TARGET_ARCH STREQUAL "ppc") # PowerPC 32-bit specific flags @@ -197,7 +197,7 @@ elseif(TARGET_ARCH STREQUAL "arm7") ) endif() else() - message(FATAL_ERROR "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for arm7. Try GCC.") + message(WARNING "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for arm7. Try GCC.") endif() elseif(TARGET_ARCH STREQUAL "arm6") if(CMAKE_C_COMPILER_ID STREQUAL "GNU") @@ -235,7 +235,7 @@ elseif(TARGET_ARCH STREQUAL "arm") ) endif() else() - message(FATAL_ERROR "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for arm. Try GCC.") + message(WARNING "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for arm. Try GCC.") endif() elseif(TARGET_ARCH STREQUAL "sparc64") if(CMAKE_C_COMPILER_ID STREQUAL "GNU") @@ -269,9 +269,7 @@ elseif(TARGET_ARCH STREQUAL "sparc64") -xc99 ) else() - message( - FATAL_ERROR "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for sparc64. Try GCC or Sun." - ) + message(WARNING "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for sparc64. Try GCC or Sun.") endif() elseif(TARGET_ARCH STREQUAL "sparc") if(CMAKE_C_COMPILER_ID STREQUAL "GNU") @@ -294,7 +292,7 @@ elseif(TARGET_ARCH STREQUAL "sparc") common_compiler_flags INTERFACE -xO3 -xtarget=native -xmemalign=4i -fma=fused -fns=yes -xc99 ) else() - message(FATAL_ERROR "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for sparc. Try GCC or Sun.") + message(WARNING "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for sparc. Try GCC or Sun.") endif() elseif(TARGET_ARCH STREQUAL "mips") if(CMAKE_C_COMPILER_ID STREQUAL "GNU") _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
