Skip to content

Commit

Permalink
build: dereference variable as appropriate
Browse files Browse the repository at this point in the history
Certain versions of CMake behave differently with variable expansion.  This may
be evaluated incorrectly in some versions.  Dereference the value explicitly.
  • Loading branch information
compnerd committed Aug 29, 2019
1 parent f1f75ca commit 89516d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/AddSwift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2370,7 +2370,7 @@ function(_add_swift_executable_single name)
# NOTE(compnerd) use the C linker language to invoke `clang` rather than
# `clang++` as we explicitly link against the C++ runtime. We were previously
# actually passing `-nostdlib++` to avoid the C++ runtime linkage.
if(SWIFTEXE_SINGLE_SDK STREQUAL ANDROID)
if(${SWIFTEXE_SINGLE_SDK} STREQUAL ANDROID)
set_property(TARGET "${name}" PROPERTY
LINKER_LANGUAGE "C")
else()
Expand Down

0 comments on commit 89516d0

Please sign in to comment.