Skip to content

Commit 89516d0

Browse files
committed
build: dereference variable as appropriate
Certain versions of CMake behave differently with variable expansion. This may be evaluated incorrectly in some versions. Dereference the value explicitly.
1 parent f1f75ca commit 89516d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2370,7 +2370,7 @@ function(_add_swift_executable_single name)
23702370
# NOTE(compnerd) use the C linker language to invoke `clang` rather than
23712371
# `clang++` as we explicitly link against the C++ runtime. We were previously
23722372
# actually passing `-nostdlib++` to avoid the C++ runtime linkage.
2373-
if(SWIFTEXE_SINGLE_SDK STREQUAL ANDROID)
2373+
if(${SWIFTEXE_SINGLE_SDK} STREQUAL ANDROID)
23742374
set_property(TARGET "${name}" PROPERTY
23752375
LINKER_LANGUAGE "C")
23762376
else()

0 commit comments

Comments
 (0)