Skip to content

Commit 661cf4d

Browse files
authored
Merge pull request libgit2#4375 from mhagger/cmake-version-3.0.x
Fix compilation for CMake versions 3.0.x where x >= 1
2 parents 8ac8c78 + 8bbee8f commit 661cf4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
PROJECT(libgit2 C)
1515
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11)
1616
CMAKE_POLICY(SET CMP0015 NEW)
17-
IF (CMAKE_VERSION VERSION_GREATER 3.0)
17+
IF (NOT CMAKE_VERSION VERSION_LESS 3.1)
1818
CMAKE_POLICY(SET CMP0051 NEW)
1919
ENDIF()
2020

0 commit comments

Comments
 (0)