Skip to content

Commit 627d807

Browse files
committed
Added support for Emscripten.
1 parent c183b7f commit 627d807

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/SundialsSetupCompilers.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
# Determine the index type for the compiler
1919
# ===============================================================
2020

21-
include(SundialsIndexSize)
21+
if(DEFINED EMSCRIPTEN)
22+
set(SUNDIALS_CINDEX_TYPE int32_t)
23+
else()
24+
include(SundialsIndexSize)
25+
endif()
2226

2327
# ===============================================================
2428
# Platform specifc settings

0 commit comments

Comments
 (0)