diff --git a/CMakeLists.txt b/CMakeLists.txt index b4c0805fe0f69..7dc928208c77d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1083,7 +1083,7 @@ if(SDL_LIBC) endforeach() if(HAVE_LIBM) set(CMAKE_REQUIRED_LIBRARIES) - if(NOT VITA) + if(NOT VITA AND NOT NINTENDO_SWITCH AND NOT NINTENDO_WII) list(APPEND EXTRA_LIBS m) endif() endif()