Skip to content

Commit 0f81941

Browse files
committed
build: quote possibly empty parameters
`CMAKE_SHARED_LIBRARY_PREFIX` is empty on Windows. This accounts for that and quotes the parameter which we otherwise will see as an error due to insufficient parameters being passed.
1 parent 5422f9a commit 0f81941

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ if (SWIFT_SWIFT_PARSER)
4040

4141
# Determine the SwiftSyntax shared library files that were built as
4242
# part of earlyswiftsyntax.
43-
list(TRANSFORM SWIFT_SYNTAX_MODULES PREPEND ${CMAKE_SHARED_LIBRARY_PREFIX}
43+
list(TRANSFORM SWIFT_SYNTAX_MODULES PREPEND "${CMAKE_SHARED_LIBRARY_PREFIX}"
4444
OUTPUT_VARIABLE SWIFT_SYNTAX_SHARED_LIBRARIES)
4545
list(TRANSFORM SWIFT_SYNTAX_SHARED_LIBRARIES APPEND
46-
${CMAKE_SHARED_LIBRARY_SUFFIX}
46+
"${CMAKE_SHARED_LIBRARY_SUFFIX}"
4747
OUTPUT_VARIABLE SWIFT_SYNTAX_SHARED_LIBRARIES)
4848

4949
# Interface library to collect swiftinterfaces and swiftmodules from

0 commit comments

Comments
 (0)