From 5ffcde34e20a18cc3e644afa99c369d6157c2cab Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Tue, 1 Dec 2020 13:12:15 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibCodeAnalysisPvsStudio.cmake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMLibCodeAnalysisPvsStudio.cmake b/CMLibCodeAnalysisPvsStudio.cmake index 70a8da5..7f82fb9 100644 --- a/CMLibCodeAnalysisPvsStudio.cmake +++ b/CMLibCodeAnalysisPvsStudio.cmake @@ -17,15 +17,17 @@ 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") get_target_property(target_type ${target} TYPE) - if (${target_type} STREQUAL "INTERFACE_LIBRARY") + if(${target_type} STREQUAL "INTERFACE_LIBRARY") set(target_type INTERFACE) else() set(target_type PRIVATE) endif() if(MSVC) - target_compile_options(${target} BEFORE ${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} BEFORE ${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:")