Skip to content

Commit d23ab4c

Browse files
committed
build: support CMAKE_SWIFT_COMPILER_TARGET
This adds support for a new variable `CMAKE_SWIFT_COMPILER_TARGET` which mirror's CMake's `CMAKE_Swift_COMPILER_TARGET`.
1 parent 6d32c4d commit d23ab4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ if(ENABLE_SWIFT)
171171
$<$<PLATFORM_ID:Windows>:-Xcc>
172172
$<$<PLATFORM_ID:Windows>:-D_DLL>
173173
TARGET
174-
${CMAKE_C_COMPILER_TARGET})
174+
${CMAKE_SWIFT_COMPILER_TARGET})
175175
endif()
176176
if(ENABLE_DTRACE)
177177
dtrace_usdt_probe(${CMAKE_CURRENT_SOURCE_DIR}/provider.d

0 commit comments

Comments
 (0)