Skip to content

Commit 6aaaca5

Browse files
compnerdrokhinip
authored andcommitted
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`. Signed-off-by: Kim Topley <[email protected]>
1 parent f45b0c8 commit 6aaaca5

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ if(ENABLE_SWIFT)
170170
$<$<PLATFORM_ID:Windows>:-Xcc>
171171
$<$<PLATFORM_ID:Windows>:-D_DLL>
172172
TARGET
173-
${CMAKE_C_COMPILER_TARGET})
173+
${CMAKE_SWIFT_COMPILER_TARGET})
174174
endif()
175175
if(ENABLE_DTRACE)
176176
dtrace_usdt_probe(${CMAKE_CURRENT_SOURCE_DIR}/provider.d
File renamed without changes.

0 commit comments

Comments
 (0)