From eeae991b4c8d797704a61c13ba89a4b35b0f5d1b Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Fri, 2 Oct 2020 11:20:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B1=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibCodeAnalysisPvsStudio.cmake | 4 ++-- hpp/pvs_studio.hpp.in | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMLibCodeAnalysisPvsStudio.cmake b/CMLibCodeAnalysisPvsStudio.cmake index 11dc27b..c1b927a 100644 --- a/CMLibCodeAnalysisPvsStudio.cmake +++ b/CMLibCodeAnalysisPvsStudio.cmake @@ -17,9 +17,9 @@ function(add_pvs_check target) add_dependencies(pvs-check pvs-check-${target}) configure_file("${CMLIB_MODULE_DIR}/hpp/pvs_studio.hpp.in" "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp") if(MSVC) - target_compile_options(${target} INTERFACE /FI "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp") + target_compile_options(${target} PUBLIC /FI "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp") else() # GCC/Clang - target_compile_options(${target} INTERFACE -include "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp") + target_compile_options(${target} PUBLIC -include "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp") endif() else() message(STATUS "CMLIB warning:") diff --git a/hpp/pvs_studio.hpp.in b/hpp/pvs_studio.hpp.in index 2b75d74..5535008 100644 --- a/hpp/pvs_studio.hpp.in +++ b/hpp/pvs_studio.hpp.in @@ -3,6 +3,7 @@ #pragma once +//-V::801 //-V813_MINSIZE=33 #endif // PVS_STUDIO_HPP_