Skip to content

build: Fix build errors on Windows

myd7349 requested to merge myd7349/uchardet:fix-windows-build-errors into master
  • Fix string no output variables on UWP

    On UWP, CMAKE_SYSTEM_PROCESSOR may be empty. As a result: string(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} TARGET_ARCHITECTURE) will be treated as: string(TOLOWER TARGET_ARCHITECTURE) which, as a result, will cause a CMake error:

    CMake Error at CMakeLists.txt:42 (string): string no output variable specified

  • Add uchardet CLI tool building support for Windows

  • Remove unnecessary header inclusions in uchardet.cpp

    These extra inclusions cause build errors on Windows.

Edited by myd7349

Merge request reports