lcompilers / lpython

Python compiler
https://lpython.org/
Other
1.5k stars 158 forks source link

Updated cmake version for windows #2562

Closed Kishan-Ved closed 7 months ago

Kishan-Ved commented 7 months ago

Fixes: https://github.com/lcompilers/lpython/issues/2561

For most of the recent PRs, the windows CI fails.

CMake Error at C:/Program Files/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.28/Modules/FindZLIB.cmake:199 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  cmake/FindStaticZLIB.cmake:7 (find_package)
  CMakeLists.txt:116 (find_package)

-- Configuring incomplete, errors occurred!

The error is related to the default CMake installed on Windows. I have updated windows cmake version to cmake=3.21.1 in the CI.yml file.