mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
				synced 2025-11-03 20:18:06 +00:00 
			
		
		
		
	Sort header files before generating cppkafka.h
This commit is contained in:
		@@ -2,6 +2,7 @@
 | 
				
			|||||||
function(make_cppkafka_header)
 | 
					function(make_cppkafka_header)
 | 
				
			||||||
    set(CPPKAFKA_HEADER ${CMAKE_CURRENT_SOURCE_DIR}/cppkafka.h)
 | 
					    set(CPPKAFKA_HEADER ${CMAKE_CURRENT_SOURCE_DIR}/cppkafka.h)
 | 
				
			||||||
    file(GLOB INCLUDE_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h" "utils/*.h")
 | 
					    file(GLOB INCLUDE_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h" "utils/*.h")
 | 
				
			||||||
 | 
					    list(SORT INCLUDE_HEADERS)
 | 
				
			||||||
    foreach(header ${INCLUDE_HEADERS})
 | 
					    foreach(header ${INCLUDE_HEADERS})
 | 
				
			||||||
        if (NOT ${header} MATCHES "cppkafka.h")
 | 
					        if (NOT ${header} MATCHES "cppkafka.h")
 | 
				
			||||||
            SET(CPPKAFKA_HEADERS "${CPPKAFKA_HEADERS}#include <cppkafka/${header}>\n")
 | 
					            SET(CPPKAFKA_HEADERS "${CPPKAFKA_HEADERS}#include <cppkafka/${header}>\n")
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -55,4 +55,5 @@
 | 
				
			|||||||
#include <cppkafka/utils/compacted_topic_processor.h>
 | 
					#include <cppkafka/utils/compacted_topic_processor.h>
 | 
				
			||||||
#include <cppkafka/utils/consumer_dispatcher.h>
 | 
					#include <cppkafka/utils/consumer_dispatcher.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user