Skip to content

Commit

Permalink
Remove redundant test exec libraries (#1544)
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth authored Apr 22, 2024
1 parent 56f3569 commit 4cd6d21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ if(BUILD_TESTING)
message(STATUS "Generating test executable ${executable_name}.")
add_executable(${executable_name} ${test_file})
target_compile_definitions(${executable_name} PRIVATE BORINGSSL_IMPLEMENTATION)
target_link_libraries(${executable_name} test_support_lib boringssl_gtest_main crypto)
target_link_libraries(${executable_name} boringssl_gtest_main)
add_dependencies(${executable_name} boringssl_prefix_symbols)
target_include_directories(${executable_name} BEFORE PRIVATE ${PROJECT_BINARY_DIR}/symbol_prefix_include)
add_dependencies(all_tests ${executable_name})
Expand Down Expand Up @@ -780,7 +780,7 @@ if(BUILD_TESTING)
)

add_dependencies(${CRYPTO_TEST_EXEC} boringssl_prefix_symbols)
target_link_libraries(${CRYPTO_TEST_EXEC} test_support_lib boringssl_gtest_main crypto)
target_link_libraries(${CRYPTO_TEST_EXEC} boringssl_gtest_main)
target_include_directories(${CRYPTO_TEST_EXEC} BEFORE PRIVATE ${PROJECT_BINARY_DIR}/symbol_prefix_include)
if(MSVC)
target_link_libraries(${CRYPTO_TEST_EXEC} ws2_32)
Expand Down
6 changes: 3 additions & 3 deletions ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ if(BUILD_TESTING)

$<TARGET_OBJECTS:crypto_test_data>
)
target_link_libraries(${INTEGRATION_TEST_EXEC} test_support_lib
boringssl_gtest_main ssl crypto)
target_link_libraries(${INTEGRATION_TEST_EXEC}
boringssl_gtest_main ssl )
target_include_directories(${INTEGRATION_TEST_EXEC} BEFORE PRIVATE ${PROJECT_BINARY_DIR}/symbol_prefix_include)
add_dependencies(all_tests ${INTEGRATION_TEST_EXEC})

Expand All @@ -82,7 +82,7 @@ if(BUILD_TESTING)
ssl_c_test.c
)

target_link_libraries(${SSL_TEST_EXEC} test_support_lib boringssl_gtest_main ssl crypto)
target_link_libraries(${SSL_TEST_EXEC} boringssl_gtest_main ssl)

target_include_directories(${SSL_TEST_EXEC} BEFORE PRIVATE ${PROJECT_BINARY_DIR}/symbol_prefix_include)

Expand Down

0 comments on commit 4cd6d21

Please sign in to comment.