Проба
This commit is contained in:
parent
41e27fb251
commit
e3957adb47
@ -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} PRIVATE /FI "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp")
|
||||
target_compile_options(${target} INTERFACE /FI "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp")
|
||||
else() # GCC/Clang
|
||||
target_compile_options(${target} PRIVATE -include "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp")
|
||||
target_compile_options(${target} INTERFACE -include "${CMAKE_BINARY_DIR}/include/pvs_studio.hpp")
|
||||
endif()
|
||||
else()
|
||||
message(STATUS "CMLIB warning:")
|
||||
|
Loading…
Reference in New Issue
Block a user