diff --git a/build/cmake/policies.cmake b/build/cmake/policies.cmake index 843b593aef..46c35011a4 100644 --- a/build/cmake/policies.cmake +++ b/build/cmake/policies.cmake @@ -48,3 +48,8 @@ if(POLICY CMP0054) # only interpret if() arguments as variables or keywords when unquoted cmake_policy(SET CMP0054 NEW) endif() + +if(POLICY CMP0067) + # Honor language standard in try_compile() source-file signature. + cmake_policy(SET CMP0067 NEW) +endif()