diff --git a/CMakeLists.txt b/CMakeLists.txt index c85aa74cf..013f76e9f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,7 @@ # Revised by Kyle Bentley, 2018 # Revised by David Callu, 2020 # Revised by Steve Robinson, 2020 +# Revised by Simon Hausmann, 2020 # This code is released under the libpng license. # For conditions of distribution and use, see the disclaimer @@ -45,7 +46,7 @@ if(NOT PNG_BUILD_ZLIB) include_directories(${ZLIB_INCLUDE_DIRS}) endif() -if(UNIX AND NOT APPLE AND NOT BEOS AND NOT HAIKU) +if(UNIX AND NOT APPLE AND NOT BEOS AND NOT HAIKU AND NOT EMSCRIPTEN) find_library(M_LIBRARY m) else() # libm is not needed and/or not available