We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04c164a commit da214beCopy full SHA for da214be
Sources/_TestDiscovery/CMakeLists.txt
@@ -16,3 +16,12 @@ target_link_libraries(_TestDiscovery PRIVATE
16
_TestingInternals)
17
18
_swift_testing_install_target(_TestDiscovery)
19
+
20
+if(NOT BUILD_SHARED_LIBS)
21
+ # When building a static library, install the internal library archive
22
+ # alongside the main library. In shared library builds, the internal library
23
+ # is linked into the main library and does not need to be installed separately.
24
+ get_swift_testing_install_lib_dir(STATIC_LIBRARY lib_destination_dir)
25
+ install(TARGETS _TestDiscovery
26
+ ARCHIVE DESTINATION ${lib_destination_dir})
27
+endif()
0 commit comments