1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 12:10:34 +00:00

Do not apply clang-tidy fixes to protobuf-generated headers

This commit is contained in:
Carles Fernandez 2021-01-18 16:00:33 +01:00
parent 1287e8fe79
commit 3773f3c71a
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 16 additions and 7 deletions

View File

@ -67,14 +67,18 @@ target_link_libraries(pvt_libs
Matio::matio
)
get_filename_component(PROTO_INCLUDE_HEADERS ${PROTO_HDRS} DIRECTORY)
get_filename_component(PROTO_INCLUDE_HEADERS_DIR ${PROTO_HDRS} DIRECTORY)
# for concurrent_queue.h
target_include_directories(pvt_libs
PUBLIC
${CMAKE_SOURCE_DIR}/src/core/receiver
SYSTEM ${PROTO_INCLUDE_HEADERS}
PRIVATE
${CMAKE_SOURCE_DIR}/src/algorithms/libs # for gnss_sdr_make_unique.h
)
# Do not apply clang-tidy fixes to protobuf generated headers
target_include_directories(pvt_libs
SYSTEM PUBLIC
${PROTO_INCLUDE_HEADERS_DIR}
)
target_compile_definitions(pvt_libs PRIVATE -DGNSS_SDR_VERSION="${VERSION}")

View File

@ -53,14 +53,19 @@ target_link_libraries(core_monitor
Gnuradio::pmt
)
get_filename_component(PROTO_INCLUDE_HEADERS ${PROTO_HDRS} DIRECTORY)
get_filename_component(PROTO_INCLUDE_HEADERS_DIR ${PROTO_HDRS} DIRECTORY)
target_include_directories(core_monitor
PUBLIC
SYSTEM ${PROTO_INCLUDE_HEADERS}
${CMAKE_SOURCE_DIR}/src/core/interfaces
PRIVATE
${CMAKE_SOURCE_DIR}/src/algorithms/libs # for gnss_sdr_make_unique
${CMAKE_SOURCE_DIR}/src/algorithms/libs # for gnss_sdr_make_unique
)
# Do not apply clang-tidy fixes to protobuf generated headers
target_include_directories(core_monitor
SYSTEM PUBLIC
${PROTO_INCLUDE_HEADERS_DIR}
)
if(GNURADIO_USES_STD_POINTERS)