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)