From: Hans Johnson Date: Wed, 16 Jan 2019 14:46:08 +0000 (-0600) Subject: ENH: Remove superflous setting for cmake 2.6.0+ X-Git-Tag: 1.9.9-b1~553 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7162a447bf5216fdcc6a5426bcb8357534d3558;p=thirdparty%2Fzlib-ng.git ENH: Remove superflous setting for cmake 2.6.0+ As of CMake 2.6.0 the ELSE() and ENDIF() constructs can be empty. The same is true for closing constructs on ENDMACRO(), ENDFUNCTION(), and ENDFOREACH(). If you require 2.4.x compatibility, CMake 2.4.3 or greater recognizes the CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS option (which is superfluous in 2.6.0) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 53dfd71c3..2872fe368 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,4 @@ cmake_minimum_required(VERSION 2.8.4) -set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON) set(CMAKE_MACOSX_RPATH 1) project(zlib C)