Skip to content

Commit

Permalink
update CMakeLists.txt to avoid warnings
Browse files Browse the repository at this point in the history
and update zlib download link
  • Loading branch information
wojdyr committed May 2, 2022
1 parent 98ebda7 commit f0f19ea
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# When using Microsoft Visual C++ Compiler for Python 2.7 add cmake option
# -D CMAKE_BUILD_TYPE=Release (I haven't investigated why it was needed).

cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 2.8.12)
project(fityk C CXX)

option(DOWNLOAD_LUA "Fetch Lua from its website" ON)
Expand All @@ -37,10 +37,6 @@ endif()

include(ExternalProject)

if (POLICY CMP0042)
cmake_policy(SET CMP0042 OLD)
endif()

if (MSVC)
# C4244: '=' : conversion from 'double' to 'float', possible loss of data
add_definitions( /wd4244 )
Expand Down Expand Up @@ -122,8 +118,8 @@ endif()

if (DOWNLOAD_ZLIB)
ExternalProject_Add(zlib
URL "http://zlib.net/zlib-1.2.11.tar.gz"
URL_HASH SHA256=c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
URL "http://zlib.net/zlib-1.2.12.tar.gz"
URL_HASH SHA256=91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9
DOWNLOAD_DIR ${thirdparty_dir}
SOURCE_DIR ${thirdparty_dir}/zlib
BINARY_DIR ${CMAKE_BINARY_DIR}/zlib
Expand Down

0 comments on commit f0f19ea

Please sign in to comment.