Mailing List Archive

svn commit: r1905611 - /httpd/httpd/trunk/CMakeLists.txt
Author: ivan
Date: Tue Nov 29 14:47:15 2022
New Revision: 1905611

URL: http://svn.apache.org/viewvc?rev=1905611&view=rev
Log:
* 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

Modified:
httpd/httpd/trunk/CMakeLists.txt

Modified: httpd/httpd/trunk/CMakeLists.txt
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CMakeLists.txt?rev=1905611&r1=1905610&r2=1905611&view=diff
==============================================================================
--- httpd/httpd/trunk/CMakeLists.txt (original)
+++ httpd/httpd/trunk/CMakeLists.txt Tue Nov 29 14:47:15 2022
@@ -15,10 +15,12 @@
#
# Read README.cmake before using this.

-PROJECT(HTTPD 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(HTTPD C)
+
INCLUDE(CheckSymbolExists)
INCLUDE(CheckCSourceCompiles)