Tests: Consolidate RunCMake.target_link_libraries-LINK_LIBRARY conditions

This commit is contained in:
Robert Maynard
2026-08-13 13:45:19 -04:00
committed by Brad King
parent 6491bd5a5f
commit 0f784069c3
@@ -119,10 +119,10 @@ if(APPLE AND (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID MATCHES
run_cmake_with_options(apple_library "-DRunCMake_BINARY_DIR=${RunCMake_BINARY_DIR}")
run_cmake_target(apple_library reexport_library main-reexport_library)
run_cmake_target(apple_library weak_library main-weak_library)
endif()
if (CMAKE_C_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_C_COMPILER_VERSION GREATER_EQUAL "12")
run_cmake_target(apple_library needed_library main-needed_library)
if (CMAKE_C_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_C_COMPILER_VERSION GREATER_EQUAL "12")
run_cmake_target(apple_library needed_library main-needed_library)
endif()
endif()
# WHOLE_ARCHIVE feature