Skip to content

Commit c619544

Browse files
authored
[6.0] Fix incorrectly-specified platform list in CMake file. (#646)
**Explanation:** Correctly sets `SWT_NO_EXIT_TESTS` on platforms that don't support them when building with CMake. **Scope:** Building iOS, watchOS, tvOS, visionOS, WASI from OSS. **Issue:** N/A **Original PR:** #633 **Risk:** Low **Testing:** Manually tested as we don't have CI using CMake yet. **Reviewer:** @compnerd @briancroom
1 parent 7865c39 commit c619544

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)