You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by iv...@apache.org on 2023/01/17 19:27:40 UTC

svn commit: r1906751 - in /apr/apr/branches/1.8.x: ./ CMakeLists.txt

Author: ivan
Date: Tue Jan 17 19:27:40 2023
New Revision: 1906751

URL: http://svn.apache.org/viewvc?rev=1906751&view=rev
Log:
Merge r1905493 from trunk:
  CMakeLists.txt: Make CMAKE_MINIMUM_REQUIRED first directive as recommended
  by CMake documentation [1].

[1] https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html

Modified:
    apr/apr/branches/1.8.x/   (props changed)
    apr/apr/branches/1.8.x/CMakeLists.txt

Propchange: apr/apr/branches/1.8.x/
------------------------------------------------------------------------------
  Merged /apr/apr/trunk:r1905493

Modified: apr/apr/branches/1.8.x/CMakeLists.txt
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.8.x/CMakeLists.txt?rev=1906751&r1=1906750&r2=1906751&view=diff
==============================================================================
--- apr/apr/branches/1.8.x/CMakeLists.txt (original)
+++ apr/apr/branches/1.8.x/CMakeLists.txt Tue Jan 17 19:27:40 2023
@@ -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 2.8)
 
+PROJECT(APR C)
+
 OPTION(APR_INSTALL_PRIVATE_H  "Install selected private .h files (for httpd)"  OFF)
 OPTION(APR_HAVE_IPV6        "IPv6 support"                 ON)
 OPTION(INSTALL_PDB          "Install .pdb files (if generated)"  ON)