Merge pull request #3851 from d3zd3z/fix3801-2.16

cmake: Avoid using target_properties for old cmake
This commit is contained in:
Janos Follath 2020-11-05 11:56:22 +00:00 committed by GitHub
commit 23055427af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -37,8 +37,8 @@ target_link_libraries(mini_client ${libs})
add_executable(ssl_client1 ssl_client1.c) add_executable(ssl_client1 ssl_client1.c)
target_link_libraries(ssl_client1 ${libs}) target_link_libraries(ssl_client1 ${libs})
add_executable(ssl_client2 ssl_client2.c) add_executable(ssl_client2 ssl_client2.c
target_sources(ssl_client2 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/query_config.c) ${CMAKE_CURRENT_SOURCE_DIR}/query_config.c)
target_link_libraries(ssl_client2 ${libs}) target_link_libraries(ssl_client2 ${libs})
add_executable(ssl_fork_server ssl_fork_server.c) add_executable(ssl_fork_server ssl_fork_server.c)
@ -50,8 +50,8 @@ target_link_libraries(ssl_mail_client ${libs})
add_executable(ssl_server ssl_server.c) add_executable(ssl_server ssl_server.c)
target_link_libraries(ssl_server ${libs}) target_link_libraries(ssl_server ${libs})
add_executable(ssl_server2 ssl_server2.c) add_executable(ssl_server2 ssl_server2.c
target_sources(ssl_server2 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/query_config.c) ${CMAKE_CURRENT_SOURCE_DIR}/query_config.c)
target_link_libraries(ssl_server2 ${libs}) target_link_libraries(ssl_server2 ${libs})
if(THREADS_FOUND) if(THREADS_FOUND)

View File

@ -27,8 +27,8 @@ target_link_libraries(udp_proxy ${libs})
add_executable(zeroize zeroize.c) add_executable(zeroize zeroize.c)
target_link_libraries(zeroize ${libs}) target_link_libraries(zeroize ${libs})
add_executable(query_compile_time_config query_compile_time_config.c) add_executable(query_compile_time_config query_compile_time_config.c
target_sources(query_compile_time_config PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../ssl/query_config.c) ${CMAKE_CURRENT_SOURCE_DIR}/../ssl/query_config.c)
target_link_libraries(query_compile_time_config ${libs}) target_link_libraries(query_compile_time_config ${libs})
install(TARGETS selftest benchmark udp_proxy query_compile_time_config install(TARGETS selftest benchmark udp_proxy query_compile_time_config