From 240e71877865ed07e4c8d5bd4553aa0772c2adf4 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Wed, 23 Nov 2022 12:40:45 +0100 Subject: Fix Linux build with CMake versions >= 3.25 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 'LINUX' variable exists in CMake since the version 3.25. This variable previously was undefined while preparsing the configure.cmake files. Since the CMake script that defines the 'check_for_ulimit' function is not included while evaluating configure.cmake first time we need to add a stub. Pick-to: 6.2 6.4 Change-Id: I25bdec4f4a1b6af23174507a8f0f9cbf01f0c398 Reviewed-by: Jörg Bornemann --- configure.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.cmake') diff --git a/configure.cmake b/configure.cmake index 37ac1f428..a082ec1a6 100644 --- a/configure.cmake +++ b/configure.cmake @@ -6,6 +6,8 @@ if(QT_CONFIGURE_RUNNING) endfunction() function(add_check_for_support) endfunction() + function(check_for_ulimit) + endfunction() else() find_package(Ninja 1.7.2) find_package(Gn ${QT_REPO_MODULE_VERSION} EXACT) -- cgit v1.2.1