Skip to content

Commit ca0e513

Browse files
committed
build: update missed callsites of get_swift_testing_install_lib_dir
This has been replaced with a global variable. Update the callsites to use that instead.
1 parent 8c41943 commit ca0e513

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Sources/_TestDiscovery/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ if(NOT BUILD_SHARED_LIBS)
2626
# When building a static library, install the internal library archive
2727
# alongside the main library. In shared library builds, the internal library
2828
# is linked into the main library and does not need to be installed separately.
29-
get_swift_testing_install_lib_dir(STATIC_LIBRARY lib_destination_dir)
3029
install(TARGETS _TestDiscovery
31-
ARCHIVE DESTINATION ${lib_destination_dir})
30+
ARCHIVE DESTINATION "${SwiftTesting_INSTALL_LIBDIR}")
3231
endif()

Sources/_TestingInternals/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ if(NOT BUILD_SHARED_LIBS)
3232
# When building a static library, install the internal library archive
3333
# alongside the main library. In shared library builds, the internal library
3434
# is linked into the main library and does not need to be installed separately.
35-
get_swift_testing_install_lib_dir(STATIC_LIBRARY lib_destination_dir)
3635
install(TARGETS _TestingInternals
37-
ARCHIVE DESTINATION ${lib_destination_dir})
36+
ARCHIVE DESTINATION "${SwiftTesting_INSTALL_LIBDIR}")
3837
endif()

0 commit comments

Comments
 (0)