From a98ed47403202007abea0e91f97da863f7f413f1 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Thu, 9 Mar 2023 15:42:16 +0100 Subject: [PATCH] cmake: fix psvita builds --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 86d0a981..add3771f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -186,6 +186,10 @@ else() add_definitions(-D_CRT_SILENCE_NONCONFORMING_TGMATH_H) endif() +if(VITA) + add_compile_options(-fno-use-cxa-atexit) +endif() + check_include_file("tgmath.h" HAVE_TGMATH_H) if(HAVE_TGMATH_H) if(NOT MSVC)