summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan@13f79535-47bb-0310-9956-ffa450edef68>2022-11-23 14:15:06 +0000
committerivan <ivan@13f79535-47bb-0310-9956-ffa450edef68>2022-11-23 14:15:06 +0000
commit9b9c722856addec5f45bd8707a65758349cfad41 (patch)
tree2cf3224a684f29f35dcef43c432f27cc1e53504c
parentff7c19d3c8b447ea6dca17d28c63a094aeee0030 (diff)
downloadlibapr-9b9c722856addec5f45bd8707a65758349cfad41.tar.gz
* CMakeLists.txt: Make CMAKE_MINIMUM_REQUIRED the first directive as
required by CMake documentation [1] [1] https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905493 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8520e77ca..41d03fff6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,10 +15,12 @@
#
# Read README.cmake before using this.
-PROJECT(APR C)
-
+# CMAKE_MINIMUM_REQUIRED should be the first directive in the file:
+# https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
+PROJECT(APR C)
+
# Enable support for MSVC runtime library selection by abstraction
# if supported by CMake.
IF(POLICY CMP0091)