SQLiteCpp
SQLiteCpp copied to clipboard
cmake build warning: `cmake --help-policy CMP0148`
cmake gives the following build warning:
CMake Warning (dev) at third_party/SQLiteCpp/CMakeLists.txt:390 (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.
this is due to: CMP0148 I think it could be replaced by FindPython3,
probably something like this should be enough to remove the warning and be backwards compatible:
if(CMAKE_VERSION VERSION_LESS "3.27")
#the code that uses findpython3
else()
#the old code
endif()
I think that python was used in the cmake build for linting or running unit tests
#454 fixed this