1# Workaround for bug in emscripten cmake: 2# add .bc (and on macOS .dylib) as library suffixes 3if (DEFINED EMSCRIPTEN) 4 list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES ".bc") 5 if (CMAKE_HOST_APPLE) 6 list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES ".dylib") 7 endif() 8endif()