Skip to content

Commit c807b3b

Browse files
CMake: Use CMAKE_SYSTEM_NAME STREQUAL "WASI" instead of WASI
The `WASI` variable is only available in the bleeding-edge CMake and not released versions yet (https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9659). So, we should use the old way for now.
1 parent 9693475 commit c807b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/shared/CompilerSettings.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ endif()
2727
if(NOT APPLE)
2828
add_compile_definitions("SWT_NO_SNAPSHOT_TYPES")
2929
endif()
30-
if(WASI)
30+
if(CMAKE_SYSTEM_NAME STREQUAL "WASI")
3131
add_compile_definitions("SWT_NO_DYNAMIC_LINKING")
3232
add_compile_definitions("SWT_NO_PIPES")
3333
endif()

0 commit comments

Comments
 (0)