From 06707d3c8c5f7e9358c1edee698257f2a87bd031 Mon Sep 17 00:00:00 2001 From: oahcy <1162485779@qq.com> Date: Tue, 31 May 2022 17:21:28 +0800 Subject: [PATCH] nx windows not need this compile options --- sources/pvmp3dec/CMakeLists.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sources/pvmp3dec/CMakeLists.txt b/sources/pvmp3dec/CMakeLists.txt index bf84a3fc..f434bd16 100644 --- a/sources/pvmp3dec/CMakeLists.txt +++ b/sources/pvmp3dec/CMakeLists.txt @@ -62,9 +62,10 @@ if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h) file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h "#pragma once\n#define OSCL_UNUSED_ARG(x) (void)(x)") endif() -target_compile_options(pvmp3dec PRIVATE - #-fsanitize=signed-integer-overflow - -include ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h - # -) - +if (NOT NX_WINDOWS) + target_compile_options(pvmp3dec PRIVATE + #-fsanitize=signed-integer-overflow + -include ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h + # + ) +endif()