diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e257972a..197bbe8d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -55,9 +55,12 @@ set(SDL_TARGETS SDL2::SDL2) if(WIN32 OR MINGW) list(PREPEND SDL_TARGETS SDL2::SDL2main ws2_32) add_definitions(-DSDL_MAIN_HANDLED) - list(APPEND YAZE_APP_CORE_SRC - app/core/platform/font_loader.cc - ) +endif() + +if (WIN32 OR MINGW OR UNIX) + list(APPEND YAZE_APP_CORE_SRC + app/core/platform/font_loader.cc + ) endif() if(APPLE)