Skip to content

Commit 2b3320d

Browse files
committed
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
1 parent 271d248 commit 2b3320d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ project(aws-c-common LANGUAGES C VERSION 0.1.0)
1010

1111
message(STATUS "CMake ${CMAKE_VERSION}")
1212

13-
if (POLICY CMP0077)
14-
cmake_policy(SET CMP0077 OLD) # Enable options to get their values from normal variables
15-
endif()
16-
1713
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
1814
include(AwsCFlags)
1915
include(AwsCheckHeaders)

0 commit comments

Comments
 (0)