From 9f60bb40a27bd73c542d5f4e10387a213d82f33f Mon Sep 17 00:00:00 2001 From: akallabeth Date: Sat, 22 Feb 2025 14:58:11 +0100 Subject: [PATCH] [cmake,android] enable LTO if CMake >= 3.20.0 --- cmake/CommonConfigOptions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CommonConfigOptions.cmake b/cmake/CommonConfigOptions.cmake index 31a2ef3a6..9c807e237 100644 --- a/cmake/CommonConfigOptions.cmake +++ b/cmake/CommonConfigOptions.cmake @@ -14,7 +14,7 @@ endif() # known issue on android, thus disabled until we support newer CMake # https://github.com/android/ndk/issues/1444 -if(NOT ANDROID) +if(NOT ANDROID OR ("${CMAKE_VERSION}" GREATER_EQUAL "3.20.0")) if(POLICY CMP0069) cmake_policy(SET CMP0069 NEW) endif()