Skip to content

Commit

Permalink
Stop using OLD behavior for CMake policy CMP0077.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
graebm committed Dec 20, 2024
1 parent 271d248 commit 2b3320d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2b3320d

Please sign in to comment.