diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1407080..357ed76 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -48,7 +48,7 @@ target_include_directories(ccd PUBLIC $ $) -if(NOT WIN32) +if(NOT WIN32 AND NOT (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")) find_library(LIBM_LIBRARY NAMES m) if(NOT LIBM_LIBRARY) message(FATAL_ERROR "Could NOT find required library LibM")