From 0938f927f5ddd17b52768e4a77baec07ec07ba35 Mon Sep 17 00:00:00 2001 From: Rocka Date: Fri, 22 Nov 2024 00:47:49 +0800 Subject: [PATCH] Set CMake policy CMP0067 to NEW. --- cmake/Fcitx5CompilerSettings.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/Fcitx5CompilerSettings.cmake b/cmake/Fcitx5CompilerSettings.cmake index 5e766d30a..544097045 100644 --- a/cmake/Fcitx5CompilerSettings.cmake +++ b/cmake/Fcitx5CompilerSettings.cmake @@ -23,6 +23,11 @@ if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif() +if (POLICY CMP0067) + # make check_cxx_source_compiles honors CMAKE_CXX_STANDARD + cmake_policy(SET CMP0067 NEW) +endif() + if(ENABLE_COVERAGE) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")