mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Simplify source declarations in ssl/CMakeLists.txt
query_config was added twice, and while at it let's declare all the sources in one place Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
		
							parent
							
								
									65a7203119
								
							
						
					
					
						commit
						aedca0c993
					
				@ -22,6 +22,7 @@ foreach(exe IN LISTS executables)
 | 
				
			|||||||
    set(extra_sources "")
 | 
					    set(extra_sources "")
 | 
				
			||||||
    if(exe STREQUAL "ssl_client2" OR exe STREQUAL "ssl_server2")
 | 
					    if(exe STREQUAL "ssl_client2" OR exe STREQUAL "ssl_server2")
 | 
				
			||||||
        list(APPEND extra_sources
 | 
					        list(APPEND extra_sources
 | 
				
			||||||
 | 
					            ssl_test_lib.c
 | 
				
			||||||
            ${CMAKE_CURRENT_SOURCE_DIR}/../test/query_config.c)
 | 
					            ${CMAKE_CURRENT_SOURCE_DIR}/../test/query_config.c)
 | 
				
			||||||
    endif()
 | 
					    endif()
 | 
				
			||||||
    add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>
 | 
					    add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>
 | 
				
			||||||
@ -30,11 +31,6 @@ foreach(exe IN LISTS executables)
 | 
				
			|||||||
    target_include_directories(${exe} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include)
 | 
					    target_include_directories(${exe} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include)
 | 
				
			||||||
endforeach()
 | 
					endforeach()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set_property(TARGET ssl_client2 APPEND PROPERTY SOURCES
 | 
					 | 
				
			||||||
    ssl_test_lib.c ${CMAKE_CURRENT_SOURCE_DIR}/../test/query_config.c)
 | 
					 | 
				
			||||||
set_property(TARGET ssl_server2 APPEND PROPERTY SOURCES
 | 
					 | 
				
			||||||
    ssl_test_lib.c ${CMAKE_CURRENT_SOURCE_DIR}/../test/query_config.c)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
if(THREADS_FOUND)
 | 
					if(THREADS_FOUND)
 | 
				
			||||||
    add_executable(ssl_pthread_server ssl_pthread_server.c $<TARGET_OBJECTS:mbedtls_test>)
 | 
					    add_executable(ssl_pthread_server ssl_pthread_server.c $<TARGET_OBJECTS:mbedtls_test>)
 | 
				
			||||||
    target_include_directories(ssl_pthread_server PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include)
 | 
					    target_include_directories(ssl_pthread_server PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user