mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Allow cmake to generate version_features.c
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
		
							parent
							
								
									cbdedc54b9
								
							
						
					
					
						commit
						65a7203119
					
				@ -127,6 +127,21 @@ add_custom_command(
 | 
				
			|||||||
        ${CMAKE_CURRENT_SOURCE_DIR}/../scripts/data_files/error.fmt
 | 
					        ${CMAKE_CURRENT_SOURCE_DIR}/../scripts/data_files/error.fmt
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					add_custom_command(
 | 
				
			||||||
 | 
					    OUTPUT
 | 
				
			||||||
 | 
					        ${CMAKE_CURRENT_BINARY_DIR}/version_features.c
 | 
				
			||||||
 | 
					    COMMAND
 | 
				
			||||||
 | 
					        ${PERL_EXECUTABLE}
 | 
				
			||||||
 | 
					            ${CMAKE_CURRENT_SOURCE_DIR}/../scripts/generate_features.pl
 | 
				
			||||||
 | 
					            ${CMAKE_CURRENT_SOURCE_DIR}/../include/mbedtls
 | 
				
			||||||
 | 
					            ${CMAKE_CURRENT_SOURCE_DIR}/../scripts/data_files
 | 
				
			||||||
 | 
					            ${CMAKE_CURRENT_BINARY_DIR}/version_features.c
 | 
				
			||||||
 | 
					    DEPENDS
 | 
				
			||||||
 | 
					        ${CMAKE_CURRENT_SOURCE_DIR}/../scripts/generate_features.pl
 | 
				
			||||||
 | 
					        ${CMAKE_CURRENT_SOURCE_DIR}/../include/mbedtls/mbedtls_config.h
 | 
				
			||||||
 | 
					        ${CMAKE_CURRENT_SOURCE_DIR}/../scripts/data_files/version_features.fmt
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if(CMAKE_COMPILER_IS_GNUCC)
 | 
					if(CMAKE_COMPILER_IS_GNUCC)
 | 
				
			||||||
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-declarations -Wmissing-prototypes")
 | 
					    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-declarations -Wmissing-prototypes")
 | 
				
			||||||
endif(CMAKE_COMPILER_IS_GNUCC)
 | 
					endif(CMAKE_COMPILER_IS_GNUCC)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user