File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,6 @@ set(swift_optimization_flags)
79
79
if (NOT CMAKE_BUILD_TYPE MATCHES Debug )
80
80
set (swift_optimization_flags -O )
81
81
endif ()
82
- if (ENABLE_TESTING )
83
- set (swift_enable_testing -enable-testing )
84
- endif ()
85
82
if (CMAKE_SYSTEM_NAME STREQUAL Windows )
86
83
set (swift_libc_flags -libc;${CMAKE_MSVC_RUNTIME_LIBRARY} )
87
84
if (CMAKE_SYSTEM_NAME STREQUAL Debug )
@@ -296,7 +293,7 @@ add_swift_library(Foundation
296
293
$< $< BOOL:FOUNDATION_ENABLE_LIBDISPATCH> :-DDEPLOYMENT_ENABLE_LIBDISPATCH>
297
294
-I;${ICU_INCLUDE_DIR}
298
295
${libdispatch_cflags}
299
- ${swift_enable_testing}
296
+ $< $< BOOL:ENABLE_TESTING > :-enable-testing >
300
297
${swift_optimization_flags}
301
298
${swift_libc_flags}
302
299
DEPENDS
@@ -401,7 +398,7 @@ add_swift_executable(plutil
401
398
-I;${CMAKE_CURRENT_BINARY_DIR}/swift
402
399
-I;${ICU_INCLUDE_DIR}
403
400
${libdispatch_cflags}
404
- ${swift_enable_testing}
401
+ $< $< BOOL:ENABLE_TESTING > :-enable-testing >
405
402
${swift_optimization_flags}
406
403
${swift_libc_flags}
407
404
DEPENDS
You can’t perform that action at this time.
0 commit comments