Skip to content

Commit bda8474

Browse files
authored
Fix incorrectly-specified platform list in CMake file. (#633)
Our CMake file that sets compiler conditionals has the wrong syntax when setting `SWT_NO_EXIT_TESTS` conditionally. Fix that. (With thanks to @compnerd.) ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent d01c406 commit bda8474

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/modules/shared/CompilerSettings.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ add_compile_options(
2020
if(APPLE)
2121
add_compile_definitions("SWT_TARGET_OS_APPLE")
2222
endif()
23-
if(CMAKE_SYSTEM_NAME IN_LIST "iOS;watchOS;tvOS;visionOS;WASI")
23+
set(SWT_NO_EXIT_TESTS_LIST "iOS" "watchOS" "tvOS" "visionOS" "WASI")
24+
if(CMAKE_SYSTEM_NAME IN_LIST SWT_NO_EXIT_TESTS_LIST)
2425
add_compile_definitions("SWT_NO_EXIT_TESTS")
2526
endif()
2627
if(NOT APPLE)

0 commit comments

Comments
 (0)