Форматирование файла
This commit is contained in:
parent
0e96514413
commit
5ffcde34e2
@ -17,15 +17,17 @@ function(add_pvs_check target)
|
|||||||
add_dependencies(pvs-check 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")
|
configure_file("${CMLIB_MODULE_DIR}/hpp/pvs_studio.hpp.in" "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp")
|
||||||
get_target_property(target_type ${target} TYPE)
|
get_target_property(target_type ${target} TYPE)
|
||||||
if (${target_type} STREQUAL "INTERFACE_LIBRARY")
|
if(${target_type} STREQUAL "INTERFACE_LIBRARY")
|
||||||
set(target_type INTERFACE)
|
set(target_type INTERFACE)
|
||||||
else()
|
else()
|
||||||
set(target_type PRIVATE)
|
set(target_type PRIVATE)
|
||||||
endif()
|
endif()
|
||||||
if(MSVC)
|
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
|
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()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(STATUS "CMLIB warning:")
|
message(STATUS "CMLIB warning:")
|
||||||
|
Loading…
Reference in New Issue
Block a user