@@ -41,7 +41,7 @@ if(SwiftTesting_MACRO STREQUAL "<auto>")
41
41
endif ()
42
42
43
43
# 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} " )
45
45
46
46
ExternalProject_Add (TestingMacros
47
47
PREFIX "tm"
@@ -65,17 +65,11 @@ if(SwiftTesting_MACRO STREQUAL "<auto>")
65
65
# properties of its targets here.
66
66
if (NOT SwiftTesting_BuildMacrosAsExecutables )
67
67
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" )
71
69
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" )
75
71
elseif (CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows" )
76
72
set (SwiftTesting_MACRO_PATH "${SwiftTesting_MACRO_INSTALL_PREFIX} /bin/TestingMacros.dll" )
77
- install (PROGRAMS "${SwiftTesting_MACRO_PATH} "
78
- DESTINATION bin )
79
73
else ()
80
74
message (FATAL_ERROR "Unable to determine the library name for TestingMacros based on system name: ${CMAKE_HOST_SYSTEM_NAME} " )
81
75
endif ()
0 commit comments