From 39111c890acb8a7dc0c2d861deeb600b7704752b Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Fri, 2 Oct 2020 11:38:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D1=81=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibCodeAnalysisPvsStudio.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMLibCodeAnalysisPvsStudio.cmake b/CMLibCodeAnalysisPvsStudio.cmake index 78d719e..70a8da5 100644 --- a/CMLibCodeAnalysisPvsStudio.cmake +++ b/CMLibCodeAnalysisPvsStudio.cmake @@ -23,9 +23,9 @@ function(add_pvs_check target) set(target_type PRIVATE) endif() if(MSVC) - target_compile_options(${target} ${target_type} /FI "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp") + target_compile_options(${target} BEFORE ${target_type} /FI "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp") else() # GCC/Clang - target_compile_options(${target} ${target_type} -include "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp") + target_compile_options(${target} BEFORE ${target_type} -include "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp") endif() else() message(STATUS "CMLIB warning:")