Skip to content

Commit a104b51

Browse files
authored
move cmake_minimum_required() before project() (#142)
1 parent 94e1c00 commit a104b51

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,10 @@
100100
# 2021-08-28 PH increased minimum version
101101
# 2021-08-28 PH added test for realpath()
102102

103-
PROJECT(PCRE2 C)
104-
105103
# Increased minimum to 2.8.5 to support GNUInstallDirs.
106104
# Increased minimum to 3.1 to support imported targets.
107105
CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
106+
PROJECT(PCRE2 C)
108107

109108
# Set policy CMP0026 to avoid warnings for the use of LOCATION in
110109
# GET_TARGET_PROPERTY. This should no longer be required.

0 commit comments

Comments
 (0)