]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
ENH: Remove superflous setting for cmake 2.6.0+
authorHans Johnson <hans-johnson@uiowa.edu>
Wed, 16 Jan 2019 14:46:08 +0000 (08:46 -0600)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 17 Jan 2019 08:54:27 +0000 (09:54 +0100)
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)

CMakeLists.txt

index 53dfd71c31d5758c6829d4d8d662b6c5004263ea..2872fe3681736f5ff910d1deb1141110c6ecb85e 100644 (file)
@@ -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)