mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 07:13:03 +00:00 
			
		
		
		
	Do not apply clang-tidy fixes to protobuf-generated headers
This commit is contained in:
		| @@ -67,14 +67,18 @@ target_link_libraries(pvt_libs | |||||||
|         Matio::matio |         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 | target_include_directories(pvt_libs | ||||||
|     PUBLIC |     PUBLIC | ||||||
|         ${CMAKE_SOURCE_DIR}/src/core/receiver |         ${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}") | target_compile_definitions(pvt_libs PRIVATE -DGNSS_SDR_VERSION="${VERSION}") | ||||||
|   | |||||||
| @@ -53,16 +53,21 @@ target_link_libraries(core_monitor | |||||||
|         Gnuradio::pmt |         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 | target_include_directories(core_monitor | ||||||
|     PUBLIC |     PUBLIC | ||||||
|         SYSTEM ${PROTO_INCLUDE_HEADERS} |  | ||||||
|         ${CMAKE_SOURCE_DIR}/src/core/interfaces |         ${CMAKE_SOURCE_DIR}/src/core/interfaces | ||||||
|     PRIVATE |     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) | if(GNURADIO_USES_STD_POINTERS) | ||||||
|     target_compile_definitions(core_monitor |     target_compile_definitions(core_monitor | ||||||
|         PUBLIC -DGNURADIO_USES_STD_POINTERS=1 |         PUBLIC -DGNURADIO_USES_STD_POINTERS=1 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez