aws / aws-sdk-cpp

AWS SDK for C++
Apache License 2.0
1.98k stars 1.06k forks source link

Fix CMake warning: Policy CMP0148 is not set #2911

Closed jmklix closed 7 months ago

jmklix commented 7 months ago

Issue #, if available:

Description of changes: Fixed below warning show when using latest versions of cmake (cmake 3.29.1):

CMake Warning (dev) at CMakeLists.txt:170 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

FindPython3 is the new method to replace PythonInterp. This new function is supported since cmake 3.12 and this sdk requires 3.13.

Check all that applies:

Check which platforms you have built SDK on to verify the correctness of this PR.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.