Ninja: build stopped: subcommand failed

C:\aseprite\build> ninja aseprite
[1/479] Building CXX object src\CMakeFiles\aseprite.dir\main\main.cpp.obj
FAILED: src/CMakeFiles/aseprite.dir/main/main.cpp.obj
C:\PROGRA~2\MIB055~1\2019\COMMUN~1\VC\Tools\MSVC\1427~1.291\bin\Hostx64\x64\cl.exe  /nologo /TP -DCMARK_STATIC_DEFINE -DCURL_STATICLIB -DENABLE_DATA_RECOVERY -DENABLE_NEWS -DENABLE_SAVE -DENABLE_SCRIPTING -DENABLE_UI -DENABLE_UPDATER -DGR_GL_FUNCTION_TYPE=__stdcall -DHAVE_CONFIG_H -DLAF_SKIA -DLAF_WITH_REGION -DLUA_FLOORN2I=1 -DNDEBUG -DPNG_NO_MMX_CODE -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1 -DSK_BUILD_FOR_WIN32 -DSK_FORCE_DISTANCE_FIELD_TEXT=0 -DSK_GAMMA_APPLY_TO_A8 -DSK_GAMMA_SRGB -DSK_INTERNAL -DSK_SCALAR_TO_FLOAT_EXCLUDED -DSK_SUPPORT_GPU=0 -DSK_SUPPORT_OPENCL=0 -DTIXML_USE_STL -DUNICODE -DWINVER=0x0A00 -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_WIN32_WINNT=0x0A00 -I..\third_party\zlib -Ithird_party\zlib -I..\third_party\libpng -Ithird_party\libpng -I..\third_party\libwebp\src -I..\third_party\tinyxml -I..\third_party\pixman\pixman -I. -I..\third_party\freetype2\include -I..\third_party\harfbuzz\src -I..\third_party\giflib\lib -I..\third_party\jpeg -Ithird_party\cmark -I..\third_party\curl\include -I..\third_party\simpleini -I..\src -I..\src\.. -I..\src\observable -Isrc\app -I..\laf -Ilaf -I..\laf\third_party\stringencoders\src -IC:\deps\skia -IC:\deps\skia\include\config -IC:\deps\skia\include\core -IC:\deps\skia\include\utils -IC:\deps\skia\include\codec -IC:\deps\skia\include\gpu -IC:\deps\skia\src\gpu -IC:\deps\skia\include\third_party\skcms -IC:\deps\skia\third_party\externals\angle2\include -I..\third_party\fmt\include -Ithird_party\freetype2\include -I..\third_party\json11 -I..\third_party\libarchive\libarchive -I..\third_party\tinyexpr -I..\third_party\lua /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MT /Zi /O2 /Ob1 /D NDEBUG   -wd4267 -wd4244 /showIncludes /Fosrc\CMakeFiles\aseprite.dir\main\main.cpp.obj /Fdsrc\CMakeFiles\aseprite.dir\ /FS -c ..\src\main\main.cpp
C:\aseprite\laf\base/base.h(14): fatal error C1083: Cannot open include file: 'math.h': No such file or directory
[2/479] Building CXX object src\app\CMakeFiles\app-lib.dir\cmd\copy_cel.cpp.obj
FAILED: src/app/CMakeFiles/app-lib.dir/cmd/copy_cel.cpp.obj
C:\PROGRA~2\MIB055~1\2019\COMMUN~1\VC\Tools\MSVC\1427~1.291\bin\Hostx64\x64\cl.exe  /nologo /TP -DASEPRITE_WITH_WEBP_SUPPORT -DCMARK_STATIC_DEFINE -DCURL_STATICLIB -DENABLE_DATA_RECOVERY -DENABLE_NEWS -DENABLE_SAVE -DENABLE_SCRIPTING -DENABLE_UI -DENABLE_UPDATER -DGR_GL_FUNCTION_TYPE=__stdcall -DHAVE_CONFIG_H -DLAF_SKIA -DLAF_WITH_REGION -DLIBARCHIVE_STATIC -DLUA_FLOORN2I=1 -DNDEBUG -DPNG_NO_MMX_CODE -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1 -DSK_BUILD_FOR_WIN32 -DSK_FORCE_DISTANCE_FIELD_TEXT=0 -DSK_GAMMA_APPLY_TO_A8 -DSK_GAMMA_SRGB -DSK_INTERNAL -DSK_SCALAR_TO_FLOAT_EXCLUDED -DSK_SUPPORT_GPU=0 -DSK_SUPPORT_OPENCL=0 -DTIXML_USE_STL -DUNICODE -DWINVER=0x0A00 -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_WIN32_WINNT=0x0A00 -I..\third_party\zlib -Ithird_party\zlib -I..\third_party\libpng -Ithird_party\libpng -I..\third_party\libwebp\src -I..\third_party\tinyxml -I..\third_party\pixman\pixman -I. -I..\third_party\freetype2\include -I..\third_party\harfbuzz\src -I..\third_party\giflib\lib -I..\third_party\jpeg -Ithird_party\cmark -I..\third_party\curl\include -I..\third_party\simpleini -I..\src -I..\src\.. -I..\src\observable -Isrc\app -I..\laf -Ilaf -I..\laf\third_party\stringencoders\src -IC:\deps\skia -IC:\deps\skia\include\config -IC:\deps\skia\include\core -IC:\deps\skia\include\utils -IC:\deps\skia\include\codec -IC:\deps\skia\include\gpu -IC:\deps\skia\src\gpu -IC:\deps\skia\include\third_party\skcms -IC:\deps\skia\third_party\externals\angle2\include -I..\third_party\fmt\include -Ithird_party\freetype2\include -I..\third_party\json11 -I..\third_party\libarchive\libarchive -I..\third_party\tinyexpr -I..\third_party\lua /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MT /Zi /O2 /Ob1 /D NDEBUG   -wd4267 -wd4244 /showIncludes /Fosrc\app\CMakeFiles\app-lib.dir\cmd\copy_cel.cpp.obj /Fdsrc\app\CMakeFiles\app-lib.dir\app-lib.pdb /FS -c ..\src\app\cmd\copy_cel.cpp
C:\aseprite\laf\base/base.h(14): fatal error C1083: Cannot open include file: 'math.h': No such file or directory
[3/479] Building CXX object src\app\CMakeFiles\app-lib.dir\cmd\copy_rect.cpp.obj
FAILED: src/app/CMakeFiles/app-lib.dir/cmd/copy_rect.cpp.obj
C:\PROGRA~2\MIB055~1\2019\COMMUN~1\VC\Tools\MSVC\1427~1.291\bin\Hostx64\x64\cl.exe  /nologo /TP -DASEPRITE_WITH_WEBP_SUPPORT -DCMARK_STATIC_DEFINE -DCURL_STATICLIB -DENABLE_DATA_RECOVERY -DENABLE_NEWS -DENABLE_SAVE -DENABLE_SCRIPTING -DENABLE_UI -DENABLE_UPDATER -DGR_GL_FUNCTION_TYPE=__stdcall -DHAVE_CONFIG_H -DLAF_SKIA -DLAF_WITH_REGION -DLIBARCHIVE_STATIC -DLUA_FLOORN2I=1 -DNDEBUG -DPNG_NO_MMX_CODE -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1 -DSK_BUILD_FOR_WIN32 -DSK_FORCE_DISTANCE_FIELD_TEXT=0 -DSK_GAMMA_APPLY_TO_A8 -DSK_GAMMA_SRGB -DSK_INTERNAL -DSK_SCALAR_TO_FLOAT_EXCLUDED -DSK_SUPPORT_GPU=0 -DSK_SUPPORT_OPENCL=0 -DTIXML_USE_STL -DUNICODE -DWINVER=0x0A00 -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_WIN32_WINNT=0x0A00 -I..\third_party\zlib -Ithird_party\zlib -I..\third_party\libpng -Ithird_party\libpng -I..\third_party\libwebp\src -I..\third_party\tinyxml -I..\third_party\pixman\pixman -I. -I..\third_party\freetype2\include -I..\third_party\harfbuzz\src -I..\third_party\giflib\lib -I..\third_party\jpeg -Ithird_party\cmark -I..\third_party\curl\include -I..\third_party\simpleini -I..\src -I..\src\.. -I..\src\observable -Isrc\app -I..\laf -Ilaf -I..\laf\third_party\stringencoders\src -IC:\deps\skia -IC:\deps\skia\include\config -IC:\deps\skia\include\core -IC:\deps\skia\include\utils -IC:\deps\skia\include\codec -IC:\deps\skia\include\gpu -IC:\deps\skia\src\gpu -IC:\deps\skia\include\third_party\skcms -IC:\deps\skia\third_party\externals\angle2\include -I..\third_party\fmt\include -Ithird_party\freetype2\include -I..\third_party\json11 -I..\third_party\libarchive\libarchive -I..\third_party\tinyexpr -I..\third_party\lua /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MT /Zi /O2 /Ob1 /D NDEBUG   -wd4267 -wd4244 /showIncludes /Fosrc\app\CMakeFiles\app-lib.dir\cmd\copy_rect.cpp.obj /Fdsrc\app\CMakeFiles\app-lib.dir\app-lib.pdb /FS -c ..\src\app\cmd\copy_rect.cpp
C:\aseprite\laf\base/base.h(14): fatal error C1083: Cannot open include file: 'math.h': No such file or directory
[4/479] Building CXX object src\app\CMakeFiles\app-lib.dir\cmd\copy_region.cpp.obj
FAILED: src/app/CMakeFiles/app-lib.dir/cmd/copy_region.cpp.obj
C:\PROGRA~2\MIB055~1\2019\COMMUN~1\VC\Tools\MSVC\1427~1.291\bin\Hostx64\x64\cl.exe  /nologo /TP -DASEPRITE_WITH_WEBP_SUPPORT -DCMARK_STATIC_DEFINE -DCURL_STATICLIB -DENABLE_DATA_RECOVERY -DENABLE_NEWS -DENABLE_SAVE -DENABLE_SCRIPTING -DENABLE_UI -DENABLE_UPDATER -DGR_GL_FUNCTION_TYPE=__stdcall -DHAVE_CONFIG_H -DLAF_SKIA -DLAF_WITH_REGION -DLIBARCHIVE_STATIC -DLUA_FLOORN2I=1 -DNDEBUG -DPNG_NO_MMX_CODE -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1 -DSK_BUILD_FOR_WIN32 -DSK_FORCE_DISTANCE_FIELD_TEXT=0 -DSK_GAMMA_APPLY_TO_A8 -DSK_GAMMA_SRGB -DSK_INTERNAL -DSK_SCALAR_TO_FLOAT_EXCLUDED -DSK_SUPPORT_GPU=0 -DSK_SUPPORT_OPENCL=0 -DTIXML_USE_STL -DUNICODE -DWINVER=0x0A00 -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_WIN32_WINNT=0x0A00 -I..\third_party\zlib -Ithird_party\zlib -I..\third_party\libpng -Ithird_party\libpng -I..\third_party\libwebp\src -I..\third_party\tinyxml -I..\third_party\pixman\pixman -I. -I..\third_party\freetype2\include -I..\third_party\harfbuzz\src -I..\third_party\giflib\lib -I..\third_party\jpeg -Ithird_party\cmark -I..\third_party\curl\include -I..\third_party\simpleini -I..\src -I..\src\.. -I..\src\observable -Isrc\app -I..\laf -Ilaf -I..\laf\third_party\stringencoders\src -IC:\deps\skia -IC:\deps\skia\include\config -IC:\deps\skia\include\core -IC:\deps\skia\include\utils -IC:\deps\skia\include\codec -IC:\deps\skia\include\gpu -IC:\deps\skia\src\gpu -IC:\deps\skia\include\third_party\skcms -IC:\deps\skia\third_party\externals\angle2\include -I..\third_party\fmt\include -Ithird_party\freetype2\include -I..\third_party\json11 -I..\third_party\libarchive\libarchive -I..\third_party\tinyexpr -I..\third_party\lua /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MT /Zi /O2 /Ob1 /D NDEBUG   -wd4267 -wd4244 /showIncludes /Fosrc\app\CMakeFiles\app-lib.dir\cmd\copy_region.cpp.obj /Fdsrc\app\CMakeFiles\app-lib.dir\app-lib.pdb /FS -c ..\src\app\cmd\copy_region.cpp
C:\aseprite\laf\base/base.h(14): fatal error C1083: Cannot open include file: 'math.h': No such file or directory
[5/479] Building CXX object src\app\CMakeFiles\app-lib.dir\cmd\copy_frame.cpp.obj
FAILED: src/app/CMakeFiles/app-lib.dir/cmd/copy_frame.cpp.obj
C:\PROGRA~2\MIB055~1\2019\COMMUN~1\VC\Tools\MSVC\1427~1.291\bin\Hostx64\x64\cl.exe  /nologo /TP -DASEPRITE_WITH_WEBP_SUPPORT -DCMARK_STATIC_DEFINE -DCURL_STATICLIB -DENABLE_DATA_RECOVERY -DENABLE_NEWS -DENABLE_SAVE -DENABLE_SCRIPTING -DENABLE_UI -DENABLE_UPDATER -DGR_GL_FUNCTION_TYPE=__stdcall -DHAVE_CONFIG_H -DLAF_SKIA -DLAF_WITH_REGION -DLIBARCHIVE_STATIC -DLUA_FLOORN2I=1 -DNDEBUG -DPNG_NO_MMX_CODE -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1 -DSK_BUILD_FOR_WIN32 -DSK_FORCE_DISTANCE_FIELD_TEXT=0 -DSK_GAMMA_APPLY_TO_A8 -DSK_GAMMA_SRGB -DSK_INTERNAL -DSK_SCALAR_TO_FLOAT_EXCLUDED -DSK_SUPPORT_GPU=0 -DSK_SUPPORT_OPENCL=0 -DTIXML_USE_STL -DUNICODE -DWINVER=0x0A00 -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_WIN32_WINNT=0x0A00 -I..\third_party\zlib -Ithird_party\zlib -I..\third_party\libpng -Ithird_party\libpng -I..\third_party\libwebp\src -I..\third_party\tinyxml -I..\third_party\pixman\pixman -I. -I..\third_party\freetype2\include -I..\third_party\harfbuzz\src -I..\third_party\giflib\lib -I..\third_party\jpeg -Ithird_party\cmark -I..\third_party\curl\include -I..\third_party\simpleini -I..\src -I..\src\.. -I..\src\observable -Isrc\app -I..\laf -Ilaf -I..\laf\third_party\stringencoders\src -IC:\deps\skia -IC:\deps\skia\include\config -IC:\deps\skia\include\core -IC:\deps\skia\include\utils -IC:\deps\skia\include\codec -IC:\deps\skia\include\gpu -IC:\deps\skia\src\gpu -IC:\deps\skia\include\third_party\skcms -IC:\deps\skia\third_party\externals\angle2\include -I..\third_party\fmt\include -Ithird_party\freetype2\include -I..\third_party\json11 -I..\third_party\libarchive\libarchive -I..\third_party\tinyexpr -I..\third_party\lua /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MT /Zi /O2 /Ob1 /D NDEBUG   -wd4267 -wd4244 /showIncludes /Fosrc\app\CMakeFiles\app-lib.dir\cmd\copy_frame.cpp.obj /Fdsrc\app\CMakeFiles\app-lib.dir\app-lib.pdb /FS -c ..\src\app\cmd\copy_frame.cpp
C:\aseprite\laf\base/base.h(14): fatal error C1083: Cannot open include file: 'math.h': No such file or directory
[6/479] Building CXX object src\app\CMakeFiles\app-lib.dir\cmd\convert_color_profile.cpp.obj
FAILED: src/app/CMakeFiles/app-lib.dir/cmd/convert_color_profile.cpp.obj
C:\PROGRA~2\MIB055~1\2019\COMMUN~1\VC\Tools\MSVC\1427~1.291\bin\Hostx64\x64\cl.exe  /nologo /TP -DASEPRITE_WITH_WEBP_SUPPORT -DCMARK_STATIC_DEFINE -DCURL_STATICLIB -DENABLE_DATA_RECOVERY -DENABLE_NEWS -DENABLE_SAVE -DENABLE_SCRIPTING -DENABLE_UI -DENABLE_UPDATER -DGR_GL_FUNCTION_TYPE=__stdcall -DHAVE_CONFIG_H -DLAF_SKIA -DLAF_WITH_REGION -DLIBARCHIVE_STATIC -DLUA_FLOORN2I=1 -DNDEBUG -DPNG_NO_MMX_CODE -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1 -DSK_BUILD_FOR_WIN32 -DSK_FORCE_DISTANCE_FIELD_TEXT=0 -DSK_GAMMA_APPLY_TO_A8 -DSK_GAMMA_SRGB -DSK_INTERNAL -DSK_SCALAR_TO_FLOAT_EXCLUDED -DSK_SUPPORT_GPU=0 -DSK_SUPPORT_OPENCL=0 -DTIXML_USE_STL -DUNICODE -DWINVER=0x0A00 -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_WIN32_WINNT=0x0A00 -I..\third_party\zlib -Ithird_party\zlib -I..\third_party\libpng -Ithird_party\libpng -I..\third_party\libwebp\src -I..\third_party\tinyxml -I..\third_party\pixman\pixman -I. -I..\third_party\freetype2\include -I..\third_party\harfbuzz\src -I..\third_party\giflib\lib -I..\third_party\jpeg -Ithird_party\cmark -I..\third_party\curl\include -I..\third_party\simpleini -I..\src -I..\src\.. -I..\src\observable -Isrc\app -I..\laf -Ilaf -I..\laf\third_party\stringencoders\src -IC:\deps\skia -IC:\deps\skia\include\config -IC:\deps\skia\include\core -IC:\deps\skia\include\utils -IC:\deps\skia\include\codec -IC:\deps\skia\include\gpu -IC:\deps\skia\src\gpu -IC:\deps\skia\include\third_party\skcms -IC:\deps\skia\third_party\externals\angle2\include -I..\third_party\fmt\include -Ithird_party\freetype2\include -I..\third_party\json11 -I..\third_party\libarchive\libarchive -I..\third_party\tinyexpr -I..\third_party\lua /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MT /Zi /O2 /Ob1 /D NDEBUG   -wd4267 -wd4244 /showIncludes /Fosrc\app\CMakeFiles\app-lib.dir\cmd\convert_color_profile.cpp.obj /Fdsrc\app\CMakeFiles\app-lib.dir\app-lib.pdb /FS -c ..\src\app\cmd\convert_color_profile.cpp
C:\aseprite\laf\base/base.h(14): fatal error C1083: Cannot open include file: 'math.h': No such file or directory
ninja: build stopped: subcommand failed.

Hey there! I’m fairly new to the compiling scene. I have been experiencing the issue above. Any help would be gladly appreciated! :blush: