From 2b3320d43bd21286d7a2467096a66cd70df6160c Mon Sep 17 00:00:00 2001 From: Michael Graeb Date: Fri, 20 Dec 2024 11:59:36 -0800 Subject: [PATCH] Stop using OLD behavior for CMake policy CMP0077. This eliminates a CMake Deprecation Warning. The comment says we added this to "Enable options to get their values from normal variables" But reading the docs: https://cmake.org/cmake/help/latest/policy/CMP0077.html it seems like the NEW behavior is what lets options get their values from normal variables --- CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b85c10314..2fcb5aaef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,10 +10,6 @@ project(aws-c-common LANGUAGES C VERSION 0.1.0) message(STATUS "CMake ${CMAKE_VERSION}") -if (POLICY CMP0077) - cmake_policy(SET CMP0077 OLD) # Enable options to get their values from normal variables -endif() - list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") include(AwsCFlags) include(AwsCheckHeaders)