diff --git a/winpr/libwinpr/timezone/CMakeLists.txt b/winpr/libwinpr/timezone/CMakeLists.txt index 7012b95bf..3affadd45 100644 --- a/winpr/libwinpr/timezone/CMakeLists.txt +++ b/winpr/libwinpr/timezone/CMakeLists.txt @@ -15,6 +15,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +if(${CMAKE_VERSION} GREATER_EQUAL "3.31.0") + cmake_policy(SET CMP0177 NEW) +endif() + option(WITH_TIMEZONE_COMPILED "Use compiled in timezone definitions" ON) if(WITH_TIMEZONE_COMPILED) winpr_definition_add(WITH_TIMEZONE_COMPILED)