Skip to content

Commit 8bb9144

Browse files
committed
build: dereference variable for some versions of CMake
CMake quoting is odd and in some versions this would compare the wrong strings.
1 parent 8ea6500 commit 8bb9144

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
@@ -1383,7 +1383,7 @@ function(_add_swift_library_single target name)
13831383
# NOTE(compnerd) use the C linker language to invoke `clang` rather than
13841384
# `clang++` as we explicitly link against the C++ runtime. We were previously
13851385
# actually passing `-nostdlib++` to avoid the C++ runtime linkage.
1386-
if(SWIFTLIB_SINGLE_SDK STREQUAL ANDROID)
1386+
if("${SWIFTLIB_SINGLE_SDK}" STREQUAL "ANDROID")
13871387
set_property(TARGET "${target}" PROPERTY
13881388
LINKER_LANGUAGE "C")
13891389
else()

0 commit comments

Comments
 (0)