@@ -41,7 +41,7 @@ if(SwiftTesting_MACRO STREQUAL "<auto>")
4141 endif ()
4242
4343 # Build and install the plugin into the current build directry.
44- set (SwiftTesting_MACRO_INSTALL_PREFIX "${CMAKE_BINARY_DIR} /plugin " )
44+ set (SwiftTesting_MACRO_INSTALL_PREFIX "${CMAKE_BINARY_DIR} " )
4545
4646 ExternalProject_Add(TestingMacros
4747 PREFIX "tm"
@@ -65,17 +65,11 @@ if(SwiftTesting_MACRO STREQUAL "<auto>")
6565 # properties of its targets here.
6666 if (NOT SwiftTesting_BuildMacrosAsExecutables)
6767 if (CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin" )
68- set (SwiftTesting_MACRO_PATH "${SwiftTesting_MACRO_INSTALL_PREFIX} /lib/libTestingMacros.dylib" )
69- install (PROGRAMS "${SwiftTesting_MACRO_PATH} "
70- DESTINATION lib/swift/host/plugins/testing)
68+ set (SwiftTesting_MACRO_PATH "${SwiftTesting_MACRO_INSTALL_PREFIX} /lib/swift/host/plugins/testing/libTestingMacros.dylib" )
7169 elseif (CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux" )
72- set (SwiftTesting_MACRO_PATH "${SwiftTesting_MACRO_INSTALL_PREFIX} /lib/libTestingMacros.so" )
73- install (PROGRAMS "${SwiftTesting_MACRO_PATH} "
74- DESTINATION lib/swift/host/plugins)
70+ set (SwiftTesting_MACRO_PATH "${SwiftTesting_MACRO_INSTALL_PREFIX} /lib/swift/host/plugins/libTestingMacros.so" )
7571 elseif (CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows" )
7672 set (SwiftTesting_MACRO_PATH "${SwiftTesting_MACRO_INSTALL_PREFIX} /bin/TestingMacros.dll" )
77- install (PROGRAMS "${SwiftTesting_MACRO_PATH} "
78- DESTINATION bin)
7973 else ()
8074 message (FATAL_ERROR "Unable to determine the library name for TestingMacros based on system name: ${CMAKE_HOST_SYSTEM_NAME} " )
8175 endif ()
0 commit comments