diff --git a/cmake/Fcitx5CompilerSettings.cmake b/cmake/Fcitx5CompilerSettings.cmake index 5e766d30..54409704 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")