Правка для поиска pvs-studio
This commit is contained in:
parent
5d7824ebdd
commit
396e2f38f9
@ -1,11 +1,13 @@
|
|||||||
if(CMAKE_EXPORT_COMPILE_COMMANDS)
|
if(CMAKE_EXPORT_COMPILE_COMMANDS)
|
||||||
include(PVS-Studio)
|
include(PVS-Studio)
|
||||||
|
find_program(PVS_STUDIO_ANALYZER_EXE pvs-studio-analyzer)
|
||||||
|
find_program(PVS_STUDIO_CONVERTER_EXE plog-converter)
|
||||||
else()
|
else()
|
||||||
message(STATUS "MyxCMake: CMAKE_EXPORT_COMPILE_COMMANDS is not set. PVS checks will be disabled.")
|
message(STATUS "MyxCMake: CMAKE_EXPORT_COMPILE_COMMANDS is not set. PVS checks will be disabled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
function(myx_cmake_analyze_pvs_studio target)
|
function(myx_cmake_analyze_pvs_studio target)
|
||||||
if(EXISTS PVS_STUDIO_BIN_PATH AND EXISTS PVS_STUDIO_CONVERTER_PATH)
|
if(PVS_STUDIO_ANALYZER_EXE AND PVS_STUDIO_CONVERTER_EXE)
|
||||||
set(options)
|
set(options)
|
||||||
set(oneValueArgs CHECKS)
|
set(oneValueArgs CHECKS)
|
||||||
set(multiValueArgs)
|
set(multiValueArgs)
|
||||||
|
Loading…
Reference in New Issue
Block a user