From 101f8e780cfbdf30fc150025ef01d280c12486ba Mon Sep 17 00:00:00 2001 From: PatriceJiang <397136899@qq.com> Date: Wed, 8 Dec 2021 09:36:41 +0800 Subject: [PATCH] skip change header file of pvmp3dec --- sources/pvmp3dec/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sources/pvmp3dec/CMakeLists.txt b/sources/pvmp3dec/CMakeLists.txt index 6098d32a..bf84a3fc 100644 --- a/sources/pvmp3dec/CMakeLists.txt +++ b/sources/pvmp3dec/CMakeLists.txt @@ -58,10 +58,13 @@ target_include_directories(pvmp3dec PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include ) -file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h "#pragma once\n#define OSCL_UNUSED_ARG(x) (void)(x)") +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 # -) \ No newline at end of file +) +