Skip to content

Commit 1f4b72a

Browse files
committed
build: correct passing -DDEPLOYMENT_ENABLE_LIBDISPATCH
This was converted to a generator expression but the FoundationXML and FoundationNetworking modules did not pass the parameter correctly.
1 parent 280d6a8 commit 1f4b72a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ add_swift_library(FoundationNetworking
347347
-DDEPLOYMENT_RUNTIME_SWIFT
348348
-DNS_BUILDING_FOUNDATION_NETWORKING
349349
-Xcc -F${CMAKE_CURRENT_BINARY_DIR}
350-
${deployment_enable_libdispatch}
350+
$<$<BOOL:FOUNDATION_ENABLE_LIBDISPATCH>:-DDEPLOYMENT_ENABLE_LIBDISPATCH>
351351
-I;${CMAKE_CURRENT_BINARY_DIR}/swift
352352
${libdispatch_cflags}
353353
$<$<BOOL:ENABLE_TESTING>:-enable-testing>
@@ -389,7 +389,7 @@ add_swift_library(FoundationXML
389389
-DDEPLOYMENT_RUNTIME_SWIFT
390390
-DNS_BUILDING_FOUNDATION_NETWORKING
391391
-Xcc -F${CMAKE_CURRENT_BINARY_DIR}
392-
${deployment_enable_libdispatch}
392+
$<$<BOOL:FOUNDATION_ENABLE_LIBDISPATCH>:-DDEPLOYMENT_ENABLE_LIBDISPATCH>
393393
-I;${CMAKE_CURRENT_BINARY_DIR}/swift
394394
${libdispatch_cflags}
395395
$<$<BOOL:ENABLE_TESTING>:-enable-testing>

0 commit comments

Comments
 (0)